If server answer not found explain this could be due to the usage of 1.X server

pull/794/head
Julien Duponchelle 8 years ago
parent 89bbe0ef1b
commit 0250547479
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -367,6 +367,8 @@ class Compute:
if not hasattr(sys, "_called_from_test") or not sys._called_from_test:
asyncio.get_event_loop().call_later(2, lambda: asyncio.async(self.connect()))
return
except aiohttp.web.HTTPNotFound:
raise aiohttp.web.HTTPConflict(text="The server {} is not a GNS3 server or it's a 1.X server".format(self._id))
if "version" not in response.json:
self._http_session.close()

Loading…
Cancel
Save