Skip to content

Commit 0328579

Browse files
committed
Fixed bug where error in run_end function of user task file caused exception in run task tab.
When run is ended in run task tab a line is now printed to the log to indicate this.
1 parent dbd6a5f commit 0328579

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gui/run_task_tab.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,11 @@ def stop_task(self, error=False, stopped_by_task=False):
391391
if not (error or stopped_by_task):
392392
self.board.stop_framework()
393393
time.sleep(0.05)
394-
self.board.process_data()
394+
try:
395+
self.board.process_data()
396+
self.print_to_log(f"\nRun stopped at: {datetime.now().strftime('%Y/%m/%d %H:%M:%S')}")
397+
except PyboardError:
398+
self.print_to_log("\nError while stopping framework run.")
395399
self.data_logger.close_files()
396400
self.task_plot.run_stop()
397401
self.board_groupbox.setEnabled(True)

0 commit comments

Comments
 (0)