Update error message when invalid aiohttp

This commit is contained in:
Julien Duponchelle 2017-07-12 10:57:03 +02:00
parent 114b137b02
commit 7c6ffb3f49
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -44,7 +44,7 @@ import logging
log = logging.getLogger(__name__)
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:
@ -123,7 +123,7 @@ class WebServer:
task.cancel()
try:
yield from asyncio.wait_for(task, 1)
except:
except BaseException:
pass
self._loop.stop()