Catch timeout error on docker

Fix #981
This commit is contained in:
Julien Duponchelle committed 2017-04-18 11:44:20 +02:00
1 parent 152807e654
commit 7302f65ffe
1 file changed
+2
+2
View File
@@ -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: