Skip to content

Commit 8f53b2b

Browse files
committed
Suppressed runtime error in log_event for tracebacks
1 parent 7a82c87 commit 8f53b2b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

simvue/run.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,12 @@ def _handle_exception_throw(
248248
else f"An exception was thrown: {_exception_thrown}"
249249
)
250250

251-
self.log_event(_event_msg)
252-
self.set_status("terminated" if _is_terminated else "failed")
253-
254251
# If the dispatcher has already been aborted then this will
255252
# fail so just continue without the event
256253
with contextlib.suppress(RuntimeError):
257-
self.log_event(f"{_exception_thrown}: {value}")
258-
259-
if not traceback:
260-
return
254+
self.log_event(_event_msg)
261255

262-
with contextlib.suppress(RuntimeError):
263-
self.log_event(f"Traceback: {traceback}")
256+
self.set_status("terminated" if _is_terminated else "failed")
264257

265258
def __exit__(
266259
self,

0 commit comments

Comments
 (0)