Skip to content

Commit

Permalink
Print traceback for model execution exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquelinegarrahan committed Feb 10, 2022
1 parent 6532990 commit cf4479f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lume_epics/epics_server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import time
import logging
import multiprocessing
import traceback

try:
multiprocessing.set_start_method("spawn")
Expand Down Expand Up @@ -282,8 +283,9 @@ def run_comm_thread(
in [protocol, "both"]
]
queue.put({"output_variables": outputs}, timeout=0.1)

except Exception as e:
print(e)
traceback.print_exc()
self._model_exec_exit_event.set()

running_indicator.value = False
Expand Down

0 comments on commit cf4479f

Please sign in to comment.