Better handling of default extension exceptions

This commit is contained in:
Joel Collins 2020-01-14 16:49:45 +00:00
parent 94aac61925
commit bc5c410abc
2 changed files with 15 additions and 7 deletions

View file

@ -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()}"
)