mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 03:12:27 +12:00
Add debug output for module loading
Signed-off-by: Jacki <jacki@thejackimonster.de>
This commit is contained in:
parent
87f0e6d871
commit
9e20662e0d
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue