Catch more websocket errors

This commit is contained in:
Julien Duponchelle committed 2016-09-05 17:01:39 +02:00
1 parent 6e7f6a94ec
commit 75d5f6507d
1 file changed
+1 -1
+1 -1
View File
@@ -376,7 +376,7 @@ class Compute:
"""
try:
self._ws = yield from self._session().ws_connect(self._getUrl("/notifications/ws"), auth=self._auth)
except aiohttp.errors.WSServerHandshakeError:
except (aiohttp.errors.WSServerHandshakeError, aiohttp.errors.ClientResponseError):
self._ws = None
while self._ws is not None:
try: