athenad: remove duplicate exception clause (#29220)

old-commit-hash: fbc56b6c733266c11935d8c63fd2a4d25e3f6a30
This commit is contained in:
Shane Smiskol
2023-08-03 10:23:38 -07:00
committed by GitHub
parent fcef654a2b
commit 989c79d8d3
-4
View File
@@ -821,10 +821,6 @@ def main(exit_event: Optional[threading.Event] = None):
except (ConnectionError, TimeoutError, WebSocketException):
conn_retries += 1
params.remove("LastAthenaPingTime")
# TODO: socket.timeout and TimeoutError are now the same exception since python3.10
# Remove the socket.timeout case once we have fully moved to python3.11
except socket.timeout: # pylint: disable=duplicate-except
params.remove("LastAthenaPingTime")
except Exception:
cloudlog.exception("athenad.main.exception")