From b620bf61156d83405cd7f2bd95d094d78b09c195 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Fri, 9 Dec 2011 17:11:59 +0000 Subject: [PATCH] enhance error message svn: r18559 --- src/gen/plug/_manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gen/plug/_manager.py b/src/gen/plug/_manager.py index b3f35fbc3..85f7dc753 100644 --- a/src/gen/plug/_manager.py +++ b/src/gen/plug/_manager.py @@ -253,7 +253,10 @@ class BasePluginManager(object): else: print "WARNING: module cannot be loaded" else: - module = __import__(pdata.mod_name) + try: + module = __import__(pdata.mod_name) + except: + print "WARNING: module '%s' cannot be loaded" % pdata.mod_name return module def empty_managed_plugins(self):