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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue