From 5deb584a03c59520f8e8f437e8f42d4e7da05772 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 21 Jan 2016 18:03:51 +0100 Subject: [PATCH] Fix bug when reading docker images Fix #398 --- 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 c54bfc9c..48216050 100644 --- a/gns3server/modules/docker/__init__.py +++ b/gns3server/modules/docker/__init__.py @@ -49,8 +49,8 @@ class Docker(BaseManager): if not self._connected: try: self._connector = aiohttp.connector.UnixConnector(self._server_url) - yield from self.query("GET", "info") self._connected = True + yield from self.query("GET", "info") except (aiohttp.errors.ClientOSError, FileNotFoundError): self._connected = False raise DockerError("Can't connect to docker daemon")