We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16b134 commit 1917fcfCopy full SHA for 1917fcf
simvue/run.py
@@ -20,6 +20,7 @@
20
import pydantic
21
import re
22
import sys
23
+import traceback as tb
24
import time
25
import functools
26
import platform
@@ -169,7 +170,14 @@ def _handle_exception_throw(
169
170
if not self._active:
171
return
172
- self.log_event(traceback or f"An exception was thrown: {_exception_thrown}")
173
+ _traceback_out: list[str] = tb.format_exception(exc_type, value, traceback)
174
+ _event_msg: str = (
175
+ "\n".join(_traceback_out)
176
+ if _traceback_out
177
+ else f"An exception was thrown: {_exception_thrown}"
178
+ )
179
+
180
+ self.log_event(_event_msg)
181
self.set_status("terminated" if _is_terminated else "failed")
182
183
# If the dispatcher has already been aborted then this will
0 commit comments