Skip to content

Commit 28dc1ea

Browse files
jreakinCopilot
andauthored
Update src/toon_format/decoder.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 239e9d2 commit 28dc1ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/toon_format/decoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def decode(input_str: str, options: Optional[DecodeOptions] = None) -> Union[Jso
330330
# If json_indent is specified, return JSON-formatted string
331331
if options.json_indent is not None:
332332
if options.json_indent < 0:
333-
raise ValueError(f"json_indent must be non-negative, got {options.json_indent}")
333+
raise ToonDecodeError(f"json_indent must be non-negative, got {options.json_indent}")
334334
return json.dumps(result, indent=options.json_indent, ensure_ascii=False)
335335

336336
return result

0 commit comments

Comments
 (0)