On 2/26/2019 10:10 AM, vergos.niko...@gmail.com wrote:
I'm receiving the following error:
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/bottle.py", line 862, in _handle
return route.call(**args)
File "/usr/lib64/python3.6/site-packages/bottle.py", line 1740, in wrapper
rv = callback(*a, **ka)
File "/usr/lib64/python3.6/site-packages/bottle.py", line 2690, in wrapper
return func(*a, **ka)
TypeError: listall() missing 1 required positional argument: 'pymydb'
and this is my route definition:
@app.route( '/' )
@auth_basic(counters.is_authenticated_user)
def listall( pymydb ):
The way i understand this error is that i'am trying to call 'listall()' without
giving it an argument while in its definition i do have 'pymydb' as a parameter.
BUT from inside my script i do NOT call listall at all, so how can it miss an
argument?
Follow the traceback. The error occurred when executing "func(*a, *ka)"
in bottle.py. Clearly, at that time, func = listall, a = [], and ka =
{}. To see why this is so, work back up the stack.
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/python-list