mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-01 15:52:36 +01:00
Slight stylistic update.
This commit is contained in:
parent
265d620a0e
commit
551ce2919b
@ -92,8 +92,7 @@ def loadPluginModule(name, ignoreDeprecation=False):
|
||||
try:
|
||||
module = imp.load_module(name, *moduleInfo)
|
||||
except:
|
||||
if name in sys.modules:
|
||||
del sys.modules[name]
|
||||
sys.modules.pop(name, None)
|
||||
raise
|
||||
if 'deprecated' in module.__dict__ and module.deprecated:
|
||||
if ignoreDeprecation:
|
||||
|
Loading…
Reference in New Issue
Block a user