From f3dd51f51742f0e392a4cf779d4b36dfc6a1e329 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 12 Feb 2024 15:53:21 -0800 Subject: [PATCH] hard-code disabled parser path --- jc/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/lib.py b/jc/lib.py index 40c87d79..cf2429db 100644 --- a/jc/lib.py +++ b/jc/lib.py @@ -330,7 +330,7 @@ def _get_parser(parser_mod_name: str) -> ModuleType: try: mod = importlib.import_module(f'{modpath}{parser_mod_name}') 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 utils.warning_message([f'"{parser_mod_name}" parser disabled due to error: {e}'])