1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

hard-code disabled parser path

This commit is contained in:
Kelly Brazil
2024-02-12 15:53:21 -08:00
parent f66f1aadaa
commit f3dd51f517

View File

@ -330,7 +330,7 @@ def _get_parser(parser_mod_name: str) -> ModuleType:
try: try:
mod = importlib.import_module(f'{modpath}{parser_mod_name}') mod = importlib.import_module(f'{modpath}{parser_mod_name}')
except Exception as e: except Exception as e:
mod = importlib.import_module(f'{modpath}disabled_parser') mod = importlib.import_module(f'jc.parsers.disabled_parser')
mod.__name__ = parser_mod_name mod.__name__ = parser_mod_name
utils.warning_message([f'"{parser_mod_name}" parser disabled due to error: {e}']) utils.warning_message([f'"{parser_mod_name}" parser disabled due to error: {e}'])