Skip to content

Commit

Permalink
Fix error formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Sep 27, 2024
1 parent cd1b766 commit 6ce2ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsonyx/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def _run(args: _Namespace) -> None:
stderr.write("".join(format_syntax_error(exc)))
sys.exit(1)
except (AssertionError, TypeError, ValueError) as exc:
stderr.write("".join(format_exception_only(exc)))
stderr.write("".join(format_exception_only(None, exc)))
sys.exit(1)

if args.output_filename and args.output_filename != "-":
Expand Down

0 comments on commit 6ce2ce4

Please sign in to comment.