mirror of https://github.com/Kkevsterrr/geneva
extra handling for timeout
This commit is contained in:
parent
7e0bae99b3
commit
1a7aa7c258
|
@ -84,6 +84,9 @@ class HTTPClient(ClientPlugin):
|
|||
fitness -= 90
|
||||
else:
|
||||
fitness += 100
|
||||
except requests.exceptions.ConnectTimeout as exc:
|
||||
logger.exception("Socket timeout.")
|
||||
fitness -= 100
|
||||
except (requests.exceptions.ConnectionError, ConnectionResetError) as exc:
|
||||
logger.exception("Connection RST.")
|
||||
fitness -= 90
|
||||
|
|
Loading…
Reference in New Issue