Skip to content

Commit

Permalink
Attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Aug 19, 2024
1 parent 5192f5f commit 8c1de40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jsonyx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ def format_syntax_error(exc: JSONSyntaxError) -> list[str]:
>>> try:
... json.loads("[,]")
... except json.JSONSyntaxError as exc:
... print("Traceback:")
... print("Traceback (most recent call last):")
... print(end="".join(json.format_syntax_error(exc)))
...
Traceback:
Traceback (most recent call last):
File "<string>", line 1, column 2
[,]
^
Expand Down

0 comments on commit 8c1de40

Please sign in to comment.