Merge pull request #57 from jorgen-k/master
Fix SSL timeout error thansk to jorgen-k
This commit is contained in:
commit
9611d5d107
3 changed files with 21 additions and 21 deletions
|
|
@ -150,7 +150,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