From 82eaf45b20dee273b33e9c016fd9e95f000c940e Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Fri, 9 Dec 2011 19:31:07 +0000 Subject: [PATCH] enhance error message svn: r18560 --- src/gen/plug/_manager.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gen/plug/_manager.py b/src/gen/plug/_manager.py index 85f7dc753..f8cf1a877 100644 --- a/src/gen/plug/_manager.py +++ b/src/gen/plug/_manager.py @@ -251,12 +251,15 @@ class BasePluginManager(object): module = __import__(pdata.mod_name) sys.path.pop(0) else: - print "WARNING: module cannot be loaded" + print _("WARNING: module cannot be loaded") else: try: module = __import__(pdata.mod_name) except: - print "WARNING: module '%s' cannot be loaded" % pdata.mod_name + import traceback + traceback.print_exc() + print _("WARNING: module '%s' cannot be loaded; " + "continuing...") % pdata.mod_name return module def empty_managed_plugins(self):