diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index b59a4ef1..1b27d832 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -81,7 +81,7 @@ class WebServer: try: srv = self._loop.create_server(handler, self._host, self._port, ssl=ssl_context) self._server, startup_res = self._loop.run_until_complete(asyncio.gather(srv, self._app.startup(), loop=self._loop)) - except OSError as e: + except (OSError, asyncio.CancelledError) as e: log.critical("Could not start the server: {}".format(e)) return False return True