diff --git a/podstatus/app.py b/podstatus/app.py index 4b83896..0212b16 100644 --- a/podstatus/app.py +++ b/podstatus/app.py @@ -9,7 +9,7 @@ from flask_bootstrap import Bootstrap5 from threading import Thread, Event from blinkstick import blinkstick -from usb.core import NoBackendError +from usb.core import NoBackendError, USBError from config import * @@ -46,7 +46,9 @@ except NoBackendError as e: logging.fatal(f"BlinkStick setup failed: {e}") bstick = None - +except USBError as e: + logging.fatal(f"BlinkStick setup failed: {e}") + bstick = None # Threading setup stop_event = Event()