From e9645e91d83072a28bb5223b0831d44c933c278f Mon Sep 17 00:00:00 2001 From: dorschw <81086590+dorschw@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:02:38 +0200 Subject: [PATCH] use exception --- riff/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riff/utils.py b/riff/utils.py index 8f64e54..40446f8 100644 --- a/riff/utils.py +++ b/riff/utils.py @@ -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))