Catch timeout error on docker

Fix #981
pull/987/head
Julien Duponchelle 7 years ago
parent 152807e654
commit 7302f65ffe
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

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

Loading…
Cancel
Save