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