Use single quotes
This commit is contained in:
parent
9611d5d107
commit
a0b061cbdc
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ class _WebsocketTransport(_AbstractTransport):
|
|||
except websocket.WebSocketTimeoutException as e:
|
||||
raise TimeoutError(e)
|
||||
except websocket.SSLError as e:
|
||||
if e.message == "The read operation timed out":
|
||||
if 'timed out' in e.message:
|
||||
raise TimeoutError(e)
|
||||
else:
|
||||
raise ConnectionError(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue