Skip to content

TypeError: __init__() takes 1 positional argument but 2 were given #4

@rosefun

Description

@rosefun
Traceback (most recent call last):
  File "E:\Anaconda3\lib\site-packages\aiohttp\web_protocol.py", line 410, in st
art
    resp = yield from self._request_handler(request)
  File "E:\Anaconda3\lib\site-packages\aiohttp\web.py", line 325, in _handle
    resp = yield from handler(request)
  File "E:\Anaconda3\lib\site-packages\aiohttp\web_middlewares.py", line 93, in
impl
    return (yield from handler(request))
  File "app.py", line 61, in logger
    return (yield from handler(request))
  File "app.py", line 100, in auth
    return (yield from handler(request))
  File "app.py", line 120, in response
    r = yield from handler(request)
  File "E:\Anaconda3\lib\site-packages\aiohttp\web_urldispatcher.py", line 142,
in handler_wrapper
    result = yield from result
  File "G:\0pythonstudy\chengxu\webAPP python廖雪峰\PureBlog-master\www\web_fram
e.py", line 200, in __call__
    return web.HTTPBadRequest('Missing argument: %s' % name)
TypeError: __init__() takes 1 positional argument but 2 were given

这是什么情况,求赐教!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions