From ee1e7b0d5213fc5fa6deba5621b14d49cdb137a9 Mon Sep 17 00:00:00 2001 From: Marshall Hallenbeck Date: Wed, 20 Sep 2023 12:24:20 -0400 Subject: [PATCH] fix exception handling --- nxc/loaders/moduleloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nxc/loaders/moduleloader.py b/nxc/loaders/moduleloader.py index c804c5ce..ac2e2165 100755 --- a/nxc/loaders/moduleloader.py +++ b/nxc/loaders/moduleloader.py @@ -140,6 +140,7 @@ class ModuleLoader: module_path = path_join(path, module) module_data = self.get_module_info(module_path) modules.update(module_data) - except: + except Exception as e: + self.logger.debug(f"Error loading module {module}: {e}") pass return modules