1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 00:38:10 +00:00

Catch timeout error on docker

Fix #981
This commit is contained in:
Julien Duponchelle 2017-04-18 11:44:20 +02:00
parent 152807e654
commit 7302f65ffe
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -134,6 +134,8 @@ class Docker(BaseManager):
) )
except (aiohttp.ClientResponseError, aiohttp.ClientOSError) as e: except (aiohttp.ClientResponseError, aiohttp.ClientOSError) as e:
raise DockerError("Docker has returned an error: {}".format(str(e))) raise DockerError("Docker has returned an error: {}".format(str(e)))
except (asyncio.TimeoutError):
raise DockerError("Docker timeout " + method + " " + path)
if response.status >= 300: if response.status >= 300:
body = yield from response.read() body = yield from response.read()
try: try: