You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from aiohttp import web
app = web.Application(debug=True)
app.router.add_subapp('/sub', web.Application())
web.run_app(app)
Actual behaviour
I got the exception:
Traceback (most recent call last):
File "app.py", line 5, in <module>
web.run_app(app)
File "/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/web.py", line 394, in run_app
loop=loop))
File "/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
return future.result()
File "/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/web.py", line 330, in startup
yield from self.on_startup.send(self)
File "/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/signals.py", line 47, in send
yield from self._pre.send(ordinal, self._name, *args, **kwargs)
File "/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/signals.py", line 59, in send
yield from self._send(ordinal, name, *args, **kwargs)
File "/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/signals.py", line 14, in _send
res = receiver(*args, **kwargs)
TypeError: handler() takes 1 positional argument but 3 were given
The text was updated successfully, but these errors were encountered:
Expected behaviour
It expected to work:
Actual behaviour
I got the exception:
The text was updated successfully, but these errors were encountered: