mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
raise ParseError instead of output empty object for disabled parser
This commit is contained in:
@ -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():
|
class info():
|
||||||
"""Provides parser metadata (version, author, etc.)"""
|
"""Provides parser metadata (version, author, etc.)"""
|
||||||
@ -19,4 +23,4 @@ def parse(
|
|||||||
quiet: bool = False
|
quiet: bool = False
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""Main text parsing function"""
|
"""Main text parsing function"""
|
||||||
return {}
|
raise ParseError('This parser is disabled.')
|
||||||
|
Reference in New Issue
Block a user