1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 08:48:11 +00:00

Catch 404 docker errors when GNS3 force close

Fix #1029
This commit is contained in:
Julien Duponchelle 2016-02-12 16:48:19 +01:00
parent 01e2fcf225
commit 1123047404
No known key found for this signature in database
GPG Key ID: F1E2485547D4595D

View File

@ -359,8 +359,8 @@ class DockerVM(BaseVM):
if nio and isinstance(nio, NIOUDP): if nio and isinstance(nio, NIOUDP):
self.manager.port_manager.release_udp_port(nio.lport, self._project) self.manager.port_manager.release_udp_port(nio.lport, self._project)
# Ignore runtime error because when closing the server # Ignore runtime error because when closing the server
except RuntimeError as e: except (DockerHttp404Error, RuntimeError) as e:
log.debug("Docker runtime error when closing: {}".format(str(e))) log.debug("Docker error when closing: {}".format(str(e)))
return return
@asyncio.coroutine @asyncio.coroutine