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

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

This commit is contained in:
Julien Duponchelle 2016-11-15 18:28:32 +01:00
parent 89bbe0ef1b
commit 0250547479
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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()