From dc9cd2869faa78b20c4feb03555f1cd93c50456a Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Jun 2019 23:03:27 +0100 Subject: [PATCH] Give requested module name to ModuleNotFoundException --- src/ModuleManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModuleManager.py b/src/ModuleManager.py index 90ab94c7..48283c1d 100644 --- a/src/ModuleManager.py +++ b/src/ModuleManager.py @@ -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: