aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ionite <[email protected]>2023-03-16 00:00:02 -0400
committerGravatar Ionite <[email protected]>2023-03-16 00:00:02 -0400
commit6b0dba59e1d7a168e97531e5bd16ca04e5ed615a (patch)
tree13b8236c30b723defec9e25987e9a4921676d81f
parentUpdate snekbox/utils/timed.py (diff)
Use log.exception for catch all
-rw-r--r--snekbox/nsjail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py
index 77cd321..b6616a4 100644
--- a/snekbox/nsjail.py
+++ b/snekbox/nsjail.py
@@ -289,7 +289,7 @@ class NsJail:
args, None, "TimeoutError: Exceeded time limit while parsing attachments"
)
except Exception as e:
- log.error(f"Unexpected {type(e).__name__} while parse attachments: {e}")
+ log.exception(f"Unexpected {type(e).__name__} while parse attachments", exc_info=e)
return EvalResult(
args, None, "FileParsingError: Unknown error while parsing attachments"
)