Code format
This commit is contained in:
parent
ed8057ce04
commit
9646058c37
14 changed files with 381 additions and 201 deletions
|
|
@ -2,6 +2,7 @@ import logging
|
|||
import traceback
|
||||
from contextlib import contextmanager
|
||||
|
||||
|
||||
@contextmanager
|
||||
def handle_extension_error(extension_name):
|
||||
"""'gracefully' log an error if an extension fails to load."""
|
||||
|
|
@ -12,6 +13,7 @@ def handle_extension_error(extension_name):
|
|||
f"Exception loading builtin extension picamera_autocalibrate: \n{traceback.format_exc()}"
|
||||
)
|
||||
|
||||
|
||||
with handle_extension_error("autofocus"):
|
||||
from .autofocus import autofocus_extension_v2
|
||||
with handle_extension_error("scan"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue