From 815820f692d49e47a9f083ba308a43723a0fc295 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 28 Mar 2017 12:14:27 +0200 Subject: [PATCH] Catch some broken hostname for compute node Fix #961 --- gns3server/controller/compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index 5de7a657..03e03257 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -504,7 +504,7 @@ class Compute: response = yield from self._session().request(method, url, headers=headers, data=data, auth=self._auth, chunked=chunked, timeout=timeout) except asyncio.TimeoutError as e: raise ComputeError("Timeout error when connecting to {}".format(url)) - except (aiohttp.errors.ClientOSError, aiohttp.errors.ClientRequestError, aiohttp.errors.ServerDisconnectedError, aiohttp.ClientResponseError) as e: + except (aiohttp.errors.ClientOSError, aiohttp.errors.ClientRequestError, aiohttp.errors.ServerDisconnectedError, aiohttp.ClientResponseError, ValueError) as e: raise ComputeError(str(e)) body = yield from response.read() if body and not raw: