From b905760635231d541272b85691ec97d32b5b48b4 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 4 Jul 2016 14:12:39 +0200 Subject: [PATCH] Fix a crash when docker is used but not installed Fix #605 --- gns3server/modules/docker/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/docker/__init__.py b/gns3server/modules/docker/__init__.py index f0f19669..5f0a7faf 100644 --- a/gns3server/modules/docker/__init__.py +++ b/gns3server/modules/docker/__init__.py @@ -114,7 +114,7 @@ class Docker(BaseManager): data=data, headers={"content-type": "application/json", }, ) - except aiohttp.ClientResponseError as e: + except (aiohttp.ClientResponseError, aiohttp.ClientOSError) as e: raise DockerError("Docker has returned an error: {}".format(str(e))) if response.status >= 300: body = yield from response.read()