From 9e20662e0d7a8b5f722070617867e6956dfb5179 Mon Sep 17 00:00:00 2001 From: Jacki Date: Thu, 18 Jan 2024 20:26:08 +0100 Subject: [PATCH] Add debug output for module loading Signed-off-by: Jacki --- manuskript/plugin/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/manuskript/plugin/__init__.py b/manuskript/plugin/__init__.py index c3cd5a2..3b1e545 100644 --- a/manuskript/plugin/__init__.py +++ b/manuskript/plugin/__init__.py @@ -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: