athenad: catch connection/timeoutError

old-commit-hash: 75c0594cdb
This commit is contained in:
Willem Melching
2021-05-12 16:01:31 +02:00
parent ca9ed8b289
commit b401941961
+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")