fix issue where  cache_timeout non-numeric
@@ -120,10 +120,9 @@ class Py3status:
if self.interval in ['once', 'persist'] or not self.interval:
self.cache_forever = True
if self.interval == 'repeat':
- self._cache_timeout = 0
+ self.cache_timeout = 1
else:
- self._cache_timeout = self.interval
-
+ self.cache_timeout = self.interval
# no button has been pressed
self.x = ''
self.y = ''
@@ -311,7 +310,7 @@ class Py3status:
else:
# we use sync_to to ensure that any time related blocklets update
# at nice times eg on the second, minute etc
- cached_until = self.py3.time_in(sync_to=self._cache_timeout)
+ cached_until = self.py3.time_in(sync_to=self.cache_timeout)
block_response = {
'full_text': '', # in case we have no response
