From 7302f65ffeed2fecf6d4854a86fe15ab2e9a82bb Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 18 Apr 2017 11:44:20 +0200 Subject: [PATCH] Catch timeout error on docker Fix #981 --- gns3server/compute/docker/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/compute/docker/__init__.py b/gns3server/compute/docker/__init__.py index 835e7cd1..bd74f361 100644 --- a/gns3server/compute/docker/__init__.py +++ b/gns3server/compute/docker/__init__.py @@ -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: