Give requested module name to ModuleNotFoundException
This commit is contained in:
parent
3dfe4a8ba1
commit
dc9cd2869f
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ class ModuleManager(object):
|
|||
|
||||
def unload_module(self, name: str):
|
||||
if not name in self.modules:
|
||||
raise ModuleNotFoundException()
|
||||
raise ModuleNotFoundException(name)
|
||||
loaded_module = self.modules[name]
|
||||
if hasattr(loaded_module.module, "unload"):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue