When loading modules, check they have been added to the right 'step' in the config

Fixes an issue seen on discord where a user accidentally set up metadata_enricher under 'extractors'
This commit is contained in:
Patrick Robertson
2025-03-20 18:09:26 +04:00
parent a5ebbf4726
commit 5e5e1c43a1
2 changed files with 14 additions and 2 deletions

View File

@@ -85,7 +85,11 @@ class ModuleFactory:
if not available:
message = f"Module '{module_name}' not found. Are you sure it's installed/exists?"
if "archiver" in module_name:
message += f" Did you mean {module_name.replace('archiver', 'extractor')}?"
message += f" Did you mean '{module_name.replace('archiver', 'extractor')}'?"
elif "gsheet" in module_name:
message += " Did you mean 'gsheet_feeder_db'?"
elif "atlos" in module_name:
message += " Did you mean 'atlos_feeder_db_storage'?"
raise IndexError(message)
return available[0]