Format check_picamera.py with black
This commit is contained in:
parent
fbd3b349df
commit
cc1c5e77c3
1 changed files with 1 additions and 7 deletions
|
|
@ -14,13 +14,12 @@ picamera_errors = (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
error_sources = []
|
error_sources = []
|
||||||
logging.info("Attempting to import picamera...")
|
logging.info("Attempting to import picamera...")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from picamerax import PiCamera
|
from picamerax import PiCamera
|
||||||
except Exception as e: # pylint: disable=W0703
|
except Exception as e: # pylint: disable=W0703
|
||||||
# TODO: Parse exception object for a few different issues, and append
|
# TODO: Parse exception object for a few different issues, and append
|
||||||
# different error sources E.g. pi with camera already in use,
|
# different error sources E.g. pi with camera already in use,
|
||||||
|
|
@ -36,9 +35,4 @@ def main():
|
||||||
if e.args[0] in picamera_errors:
|
if e.args[0] in picamera_errors:
|
||||||
error_sources.append(ErrorSource(e.args[0]))
|
error_sources.append(ErrorSource(e.args[0]))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return error_sources
|
return error_sources
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue