athenad: catch connection/timeoutError

This commit is contained in:
Willem Melching
2021-05-12 16:01:31 +02:00
parent 989230d2aa
commit 75c0594cdb
+3
View File
@@ -433,6 +433,9 @@ def main():
handle_long_poll(ws)
except (KeyboardInterrupt, SystemExit):
break
except (ConnectionError, TimeoutError):
conn_retries += 1
params.delete("LastAthenaPingTime")
except Exception:
crash.capture_exception()
cloudlog.exception("athenad.main.exception")