Adjust continuation indents
@@ -234,6 +234,7 @@ class Time_State(State):
pyportal.get_local_time(location=secrets['timezone'])
self.refresh_time = now
except RuntimeError as e:
+ self.refresh_time = now - 3000 # delay 10 minutes before retrying
logger.error('Some error occured, retrying! - %s', str(e))
# only query the weather every 10 minutes (and on first run)
@@ -277,6 +278,7 @@ class Time_State(State):
board.DISPLAY.wait_for_frame()
except RuntimeError as e:
+ self.weather_refresh = now - 540 # delay a minute before retrying
logger.error("Some error occured, retrying! - %s", str(e))
if (not update_time) or ((now - update_time) > 30):
