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:
parent
89bbe0ef1b
commit
0250547479
@ -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…
Reference in New Issue
Block a user