Add configurable interval to scores module (#727)

This commit is contained in:
Erik Johnson 2019-03-26 08:58:46 -05:00 committed by GitHub
parent 780cf54cf7
commit 25fba049d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'),