From 9741669487aaf7e16140932120ca46370c4ccb5d Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 9 Apr 2020 10:11:18 +0200 Subject: [PATCH] support of older version of aiohttp --- src/risotto/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/risotto/http.py b/src/risotto/http.py index c55ea73..c7199da 100644 --- a/src/risotto/http.py +++ b/src/risotto/http.py @@ -161,7 +161,7 @@ async def get_app(loop): print(f' - {path} (http_get)') print() del extra_routes - app.add_routes(routes) + app.router.add_routes(routes) await dispatcher.on_join() return await loop.create_server(app.make_handler(), '*', get_config()['http_server']['port'])