Add missing change to loaded_module.module (from module) in unload_module

This commit is contained in:
jesopo 2018-12-09 11:20:55 +00:00
parent 91beadd1cd
commit ac71cfa4fa

View file

@ -167,7 +167,7 @@ class ModuleManager(object):
if not name in self.modules:
raise ModuleNotFoundException()
loaded_module = self.modules[name]
if hasattr(module, "unload"):
if hasattr(loaded_module.module, "unload"):
try:
loaded_module.module.unload()
except: