From 2d217e17e66760e9b083f49a637699cad07ef4fc Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 7 Aug 2015 00:37:28 -0400 Subject: [PATCH] Error in loading addon will now show in debug log --- gramps/gen/plug/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/plug/utils.py b/gramps/gen/plug/utils.py index 6b8c52cb0..d0465959d 100644 --- a/gramps/gen/plug/utils.py +++ b/gramps/gen/plug/utils.py @@ -315,10 +315,10 @@ def load_addon_file(path, callback=None): # evaluate the contents: try: exec(contents, env) - except: + except Exception as exp: if callback: msg = _("Error in '%s' file: cannot load.") % gpr_file - callback(" " + msg + "\n") + callback(" " + msg + "\n" + str(exp)) continue # There can be multiple addons per gpr file: for results in globals()["register_results"]: