This commit is contained in:
Jeremy Fincher 2004-02-16 16:16:13 +00:00
parent ced437b309
commit 6d117b2992

View File

@ -84,7 +84,8 @@ def loadPluginModule(name, ignoreDeprecation=False):
try:
module = imp.load_module(name, *moduleInfo)
except:
del sys.modules[name]
if name in sys.modules:
del sys.modules[name]
raise
if 'deprecated' in module.__dict__ and module.deprecated:
if ignoreDeprecation: