1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Catch more websocket errors

This commit is contained in:
Julien Duponchelle 2016-09-05 17:01:39 +02:00
parent 6e7f6a94ec
commit 75d5f6507d
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

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: