Agent: Don't catch TimeoutError in _open_socket_to_server() since OSError is already being caught

This commit is contained in:
Shreya Malviya 2022-09-08 13:37:25 +05:30 committed by Mike Salvatore
parent 6bfe6bc79d
commit 7661027c6c
1 changed files with 0 additions and 2 deletions

View File

@ -60,5 +60,3 @@ def _open_socket_to_server(server: str):
d_socket.send(RELAY_CONTROL_MESSAGE)
except OSError as err:
logger.error(f"Error connecting to socket {server}: {err}")
except TimeoutError as err:
logger.error(f"Timed out while connecting to socket {server}: {err}")