Skip to content
Snippets Groups Projects
Commit c3dbed31 authored by Yaroslav Soroko (yaso)'s avatar Yaroslav Soroko (yaso)
Browse files

[FIX] hw_drivers: Error-proof Interfaces


Before, when instatating the interfaces if there was an error inside
Odoo could stop. This PR prevents that and simply avoids instantiating
the interface which causes the error.

closes odoo/odoo#133872

X-original-commit: e8f700f7
Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
parent 7ebc8cc5
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment