mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-10 11:34:09 +01:00
fix: don't print exception if the auto-update module cannot be found in plugins
This commit is contained in:
1 parent
66daae6d9e
commit
860517a321
1 file changed
+4
@@ -141,6 +141,10 @@ class BECGuiClientMixin:
|
||||
for ep in eps:
|
||||
if ep.name == "plugin_widgets_update":
|
||||
try:
|
||||
spec = importlib.util.find_spec(ep.module)
|
||||
# if the module is not found, we skip it
|
||||
if spec is None:
|
||||
continue
|
||||
return ep.load()(gui=self)
|
||||
except Exception as e:
|
||||
print(f"Error loading auto update script from plugin: {str(e)}")
|
||||
|
||||
Reference in new issue
Block a user