Skip to content

Commit

Permalink
use exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dorschw committed Dec 10, 2024
1 parent 3f5958a commit e9645e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riff/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def parse_ruff_output(ruff_stdout: str) -> tuple[Violation, ...]:
try:
raw_violations = json.loads(ruff_stdout)
except json.JSONDecodeError:
logger.exception("Could not parse Ruff output as JSON")
logger.error("Could not parse Ruff output as JSON:")
raise

violations = tuple(map(Violation.parse, raw_violations))
Expand Down

0 comments on commit e9645e9

Please sign in to comment.