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

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
TimeoutError also occurs when server is not available. This fills the log fast -> TimeoutErrors no longer get written to the log
  • Loading branch information
tidely committed May 5, 2020
1 parent 76fa60e commit 283b406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def socket_connect(self) -> None:
""" Connect to a remote socket using RSA and agreeing on a AES key"""
try:
self.socket.connect((self.serverHost, self.serverPort))
except ConnectionRefusedError:
except (ConnectionRefusedError, TimeoutError):
raise
except Exception as e:
logging.error(errors(e))
Expand Down

0 comments on commit 283b406

Please sign in to comment.