mirror of https://github.com/Mikaela/Limnoria.git
Slight stylistic update.
This commit is contained in:
parent
265d620a0e
commit
551ce2919b
|
@ -92,8 +92,7 @@ def loadPluginModule(name, ignoreDeprecation=False):
|
||||||
try:
|
try:
|
||||||
module = imp.load_module(name, *moduleInfo)
|
module = imp.load_module(name, *moduleInfo)
|
||||||
except:
|
except:
|
||||||
if name in sys.modules:
|
sys.modules.pop(name, None)
|
||||||
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