From 7661027c6c50b42e2f2b340f30b4a31bc55791b4 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Thu, 8 Sep 2022 13:37:25 +0530 Subject: [PATCH] Agent: Don't catch TimeoutError in _open_socket_to_server() since OSError is already being caught --- monkey/infection_monkey/network/relay/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/monkey/infection_monkey/network/relay/utils.py b/monkey/infection_monkey/network/relay/utils.py index 956945068..5923002b6 100644 --- a/monkey/infection_monkey/network/relay/utils.py +++ b/monkey/infection_monkey/network/relay/utils.py @@ -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}")