1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Forward server disconnected errors

Fix #758
This commit is contained in:
Julien Duponchelle 2016-11-02 11:06:45 +01:00
parent b85b4b73cc
commit 0d022a4d33
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -538,7 +538,10 @@ class Compute:
"""
Forward a call to the emulator on compute
"""
try:
res = yield from self.http_query(method, "/{}/{}".format(type, path), data=data, timeout=None)
except aiohttp.errors.DisconnectedError:
raise aiohttp.web.HTTPGatewayTimeout()
return res.json
@asyncio.coroutine