Give requested module name to ModuleNotFoundException

This commit is contained in:
jesopo 2019-06-19 23:03:27 +01:00
parent 3dfe4a8ba1
commit dc9cd2869f

View file

@ -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: