Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

Commit 283b406

Browse files
committed
Improvements
TimeoutError also occurs when server is not available. This fills the log fast -> TimeoutErrors no longer get written to the log
1 parent 76fa60e commit 283b406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def socket_connect(self) -> None:
282282
""" Connect to a remote socket using RSA and agreeing on a AES key"""
283283
try:
284284
self.socket.connect((self.serverHost, self.serverPort))
285-
except ConnectionRefusedError:
285+
except (ConnectionRefusedError, TimeoutError):
286286
raise
287287
except Exception as e:
288288
logging.error(errors(e))

0 commit comments

Comments
 (0)