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