SSL Timeout error
This commit is contained in:
parent
2e2496cd4c
commit
557edb8620
2 changed files with 5 additions and 2 deletions
|
|
@ -151,7 +151,10 @@ class _WebsocketTransport(_AbstractTransport):
|
|||
except websocket.WebSocketTimeoutException as e:
|
||||
raise TimeoutError(e)
|
||||
except websocket.SSLError as e:
|
||||
raise ConnectionError(e)
|
||||
if e.message == "The read operation timed out":
|
||||
raise TimeoutError(e)
|
||||
else:
|
||||
raise ConnectionError(e)
|
||||
except websocket.WebSocketConnectionClosedException as e:
|
||||
raise ConnectionError('connection closed (%s)' % e)
|
||||
except socket.error as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue