mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Update error message when invalid aiohttp
This commit is contained in:
parent
114b137b02
commit
7c6ffb3f49
@ -44,7 +44,7 @@ import logging
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
if not aiohttp.__version__.startswith("2.2"):
|
if not aiohttp.__version__.startswith("2.2"):
|
||||||
raise RuntimeError("aiohttp 2.0 is required to run the GNS3 server")
|
raise RuntimeError("aiohttp 2.2 is required to run the GNS3 server")
|
||||||
|
|
||||||
|
|
||||||
class WebServer:
|
class WebServer:
|
||||||
@ -123,7 +123,7 @@ class WebServer:
|
|||||||
task.cancel()
|
task.cancel()
|
||||||
try:
|
try:
|
||||||
yield from asyncio.wait_for(task, 1)
|
yield from asyncio.wait_for(task, 1)
|
||||||
except:
|
except BaseException:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
self._loop.stop()
|
self._loop.stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user