Skip to content

Commit

Permalink
Fix websocket exception handling on python2.7 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Payton Yao authored and miguelgrinberg committed Nov 29, 2019
1 parent 280aa0f commit b714f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engineio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _connect_websocket(self, url, headers, engineio_path):
ws = websocket.create_connection(
websocket_url + self._get_url_timestamp(), header=headers,
cookie=cookies)
except ConnectionError:
except (ConnectionError, IOError):
if upgrade:
self.logger.warning(
'WebSocket upgrade failed: connection error')
Expand Down

0 comments on commit b714f81

Please sign in to comment.