Skip to content

Commit

Permalink
Add try catch to graph update
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk committed Jun 13, 2020
1 parent 27ec71d commit 0a0f622
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions s_tui/s_tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,19 @@ def update_displayed_information(self):
any(self.summary_menu.active_sensors[source_name])):
source.update()


for graph in self.visible_graphs.values():
graph.update()
try:
graph.update()
except:
logging.error("Graph update failed")

# update graph summery
for summary in self.visible_summaries.values():
summary.update()
try:
summary.update()
except:
logging.error("Summary update failed")

# Only update clock if not is stress mode
if self.controller.stress_conroller.get_current_mode() != 'Monitor':
Expand Down

0 comments on commit 0a0f622

Please sign in to comment.