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:
@ -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}'])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user