Skip to content

Commit

Permalink
hard-code disabled parser path
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjonbrazil committed Feb 12, 2024
1 parent f66f1aa commit f3dd51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jc/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'])

Expand Down

0 comments on commit f3dd51f

Please sign in to comment.