Better handling of default extension exceptions
This commit is contained in:
parent
94aac61925
commit
bc5c410abc
2 changed files with 15 additions and 7 deletions
|
|
@ -1,4 +1,14 @@
|
|||
import logging
|
||||
import traceback
|
||||
|
||||
from .autofocus import autofocus_extension_v2
|
||||
from .scan import scan_extension_v2
|
||||
from .zip_builder import zip_extension_v2
|
||||
from .picamera_autocalibrate import lst_extension_v2
|
||||
|
||||
# "Gracefully" handle cases where picamera cannot be imported (eg test server)
|
||||
try:
|
||||
from .picamera_autocalibrate import lst_extension_v2
|
||||
except Exception as e:
|
||||
logging.error(
|
||||
f"Exception loading builtin extension picamera_autocalibrate: \n{traceback.format_exc()}"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue