Skip to content

Commit 445a90f

Browse files
committed
Fix flake8
1 parent 0a0f622 commit 445a90f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

s_tui/s_tui.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,20 @@ def update_displayed_information(self):
248248
any(self.summary_menu.active_sensors[source_name])):
249249
source.update()
250250

251-
252251
for graph in self.visible_graphs.values():
253252
try:
254253
graph.update()
255-
except:
256-
logging.error("Graph update failed")
254+
except IndexError:
255+
logging.debug("Graph update failed")
256+
pass
257257

258258
# update graph summery
259259
for summary in self.visible_summaries.values():
260260
try:
261261
summary.update()
262-
except:
263-
logging.error("Summary update failed")
262+
except IndexError:
263+
logging.debug("Summary update failed")
264+
pass
264265

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

s_tui/sturwid/ui_elements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ def keypress(self, size, key):
9292
return super(ViListBox, self).keypress(size, key)
9393

9494

95-
def radio_button(g, l, fn):
95+
def radio_button(group, label, fn):
9696
""" Inheriting radio button of urwid """
97-
w = urwid.RadioButton(g, l, False, on_state_change=fn)
97+
w = urwid.RadioButton(group, label, False, on_state_change=fn)
9898
w = urwid.AttrWrap(w, 'button normal', 'button select')
9999
return w
100100

0 commit comments

Comments
 (0)