mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-03 16:39:25 +01:00
Fixed bug #898028.
This commit is contained in:
parent
ced437b309
commit
6d117b2992
@ -84,7 +84,8 @@ def loadPluginModule(name, ignoreDeprecation=False):
|
|||||||
try:
|
try:
|
||||||
module = imp.load_module(name, *moduleInfo)
|
module = imp.load_module(name, *moduleInfo)
|
||||||
except:
|
except:
|
||||||
del sys.modules[name]
|
if name in sys.modules:
|
||||||
|
del sys.modules[name]
|
||||||
raise
|
raise
|
||||||
if 'deprecated' in module.__dict__ and module.deprecated:
|
if 'deprecated' in module.__dict__ and module.deprecated:
|
||||||
if ignoreDeprecation:
|
if ignoreDeprecation:
|
||||||
|
Loading…
Reference in New Issue
Block a user