Nicer error log when no URLs provided for CLI feeder - don't need the stacktrace

This commit is contained in:
Patrick Robertson
2025-03-17 09:34:33 +00:00
parent 99e9ac2465
commit 0ec5451f66
2 changed files with 4 additions and 2 deletions

View File

@@ -377,7 +377,8 @@ Here's how that would look: \n\nsteps:\n extractors:\n - [your_extractor_name_
try:
loaded_module: BaseModule = self.module_factory.get_module(module, self.config)
except (KeyboardInterrupt, Exception) as e:
logger.error(f"Error during setup of modules: {e}\n{traceback.format_exc()}")
if not isinstance(e, KeyboardInterrupt) and not isinstance(e, SetupError):
logger.error(f"Error during setup of modules: {e}\n{traceback.format_exc()}")
if loaded_module and module_type == "extractor":
loaded_module.cleanup()
raise e