From aaf8a1556fee0f0388c194233047b7e703e40306 Mon Sep 17 00:00:00 2001 From: Landon Owen Date: Thu, 13 Mar 2025 17:04:38 -0700 Subject: [PATCH] Relaxed module error check for machine factory and removed the error raise call for it --- ats/configuration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ats/configuration.py b/ats/configuration.py index 8946d77..f565421 100644 --- a/ats/configuration.py +++ b/ats/configuration.py @@ -463,13 +463,13 @@ def get_machine_factory(module_name, machine_class, return machine_factory except ModuleNotFoundError as e: - if (e == ModuleNotFoundError(module_name)): + if (module_name in e.name): log(f"Module {module_name} not found in package {machine_package}. Continuing search.", echo=False) return None else: - # If a module error occurs for a module other than module_name, raise an error - raise e + log(f"Importing {module_name} from {machine_package} caused the following error:\n{e}", echo=True) + return None def get_machine(file_text, file_name, is_batch=False): header = '#BATS:' if is_batch else '#ATS:'