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

raise ParseError instead of output empty object for disabled parser

This commit is contained in:
Kelly Brazil
2024-02-10 14:58:15 -08:00
parent 63d1cead90
commit 5cde127a04

View File

@ -1,4 +1,8 @@
"""jc - JSON Convert disabled parser"""
"""jc - JSON Convert disabled parser
This parser has been disabled due to an error in the parser code.
"""
from jc.exceptions import ParseError
class info():
"""Provides parser metadata (version, author, etc.)"""
@ -19,4 +23,4 @@ def parse(
quiet: bool = False
) -> dict:
"""Main text parsing function"""
return {}
raise ParseError('This parser is disabled.')