diff --git a/addons/hw_drivers/main.py b/addons/hw_drivers/main.py index ab5e4ffc28d00b90c231d401f772e2bb7aa35154..5995d3e0360cf147b1f4c59ce472783e7b447a1f 100644 --- a/addons/hw_drivers/main.py +++ b/addons/hw_drivers/main.py @@ -93,9 +93,12 @@ class Manager(Thread): # Start the interfaces for interface in interfaces.values(): - i = interface() - i.daemon = True - i.start() + try: + i = interface() + i.daemon = True + i.start() + except Exception as e: + _logger.error("Error in %s: %s", str(interface), e) # Check every 3 secondes if the list of connected devices has changed and send the updated # list to the connected DB.