Skip to content

Commit 6b0dba5

Browse files
committed
Use log.exception for catch all
1 parent fb01ba2 commit 6b0dba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snekbox/nsjail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def python3(
289289
args, None, "TimeoutError: Exceeded time limit while parsing attachments"
290290
)
291291
except Exception as e:
292-
log.error(f"Unexpected {type(e).__name__} while parse attachments: {e}")
292+
log.exception(f"Unexpected {type(e).__name__} while parse attachments", exc_info=e)
293293
return EvalResult(
294294
args, None, "FileParsingError: Unknown error while parsing attachments"
295295
)

0 commit comments

Comments
 (0)