Add debug output for module loading

Signed-off-by: Jacki <jacki@thejackimonster.de>
This commit is contained in:
Jacki 2024-01-18 20:26:08 +01:00
parent 87f0e6d871
commit 9e20662e0d
No known key found for this signature in database
GPG key ID: B404184796354C5E

View file

@ -37,12 +37,14 @@ def loadPlugins():
try:
module = SourceFileLoader(name, path).load_module()
except Exception:
except Exception as e:
print("MODULE ERROR: ( " + name + ", " + path + " )" + str(e))
continue
try:
plugin_cls = module.Plugin
except AttributeError:
except AttributeError as e:
print("MODULE ERROR: ( " + name + ", " + path + " )" + str(e))
continue
try:
@ -50,7 +52,8 @@ def loadPlugins():
continue
plugin = plugin_cls()
except TypeError:
except TypeError as e:
print("MODULE ERROR: ( " + name + ", " + path + " )" + str(e))
continue
if not plugin: