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

This commit is contained in:
Julien Duponchelle committed 2016-11-15 18:36:04 +01:00
1 parent 89bbe0ef1b
commit 0250547479
1 file changed
+2
+2
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()