From 25fba049d026f0158256f1e403fbe86266e0ac12 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Tue, 26 Mar 2019 08:58:46 -0500 Subject: [PATCH] Add configurable interval to scores module (#727) --- i3pystatus/scores/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i3pystatus/scores/__init__.py b/i3pystatus/scores/__init__.py index 142b8af..5067911 100644 --- a/i3pystatus/scores/__init__.py +++ b/i3pystatus/scores/__init__.py @@ -341,6 +341,7 @@ class Scores(Module): settings = ( ('backends', 'List of backend instances'), + ('interval', 'Update interval (in seconds)'), ('favorite_icon', 'Value for the ``{away_favorite}`` and ' '``{home_favorite}`` formatter when the displayed game ' 'is being played by a followed team'), @@ -430,7 +431,7 @@ class Scores(Module): with self.condition: self.condition.wait(self.interval) self.check_scores(force='scheduled') - except: + except Exception: msg = 'Exception in {thread} at {time}, module {name}'.format( thread=threading.current_thread().name, time=time.strftime('%c'),