enhance error message
svn: r18559
This commit is contained in:
parent
4ecd146f94
commit
b620bf6115
@ -253,7 +253,10 @@ class BasePluginManager(object):
|
|||||||
else:
|
else:
|
||||||
print "WARNING: module cannot be loaded"
|
print "WARNING: module cannot be loaded"
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
module = __import__(pdata.mod_name)
|
module = __import__(pdata.mod_name)
|
||||||
|
except:
|
||||||
|
print "WARNING: module '%s' cannot be loaded" % pdata.mod_name
|
||||||
return module
|
return module
|
||||||
|
|
||||||
def empty_managed_plugins(self):
|
def empty_managed_plugins(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user