TypeError: app.<locals>.regen() got an unexpected keyword argument 'db' in /author-institution/
Opened this issue · 0 comments
satyaog commented
This :
paperoni/paperoni/webapp/common.py
Lines 185 to 186 in 85f8b2b
throws the following exception :
> Traceback (most recent call last):
> File "/Users/satyaortiz-gagne/travail/mila/CODE/paperoni-config/venv/cp311/lib/python3.11/site-packages/starbear/serve.py", line 278, in run
> await self.fn(self.page)
> File "/Users/satyaortiz-gagne/travail/mila/CODE/paperoni-config/venv/cp311/lib/python3.11/site-packages/starbear/wrap.py", line 33, in wrapped_app
> await app(page)
> File "/Users/satyaortiz-gagne/travail/mila/CODE/paperoni/paperoni/webapp/common.py", line 276, in app
> return await fn(page, page[target])
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/Users/satyaortiz-gagne/travail/mila/CODE/paperoni/paperoni/webapp/author-institution.py", line 240, in app
> async for result in regen:
> File "/Users/satyaortiz-gagne/travail/mila/CODE/paperoni/paperoni/webapp/common.py", line 186, in regenerator
> gen = regen(db=db)
> ^^^^^^^^^^^^
> TypeError: app.<locals>.regen() got an unexpected keyword argument 'db'
The definition of regen
is :
paperoni/paperoni/webapp/author-institution.py
Lines 75 to 82 in 85f8b2b
and the previous call in stack is :
paperoni/paperoni/webapp/author-institution.py
Lines 232 to 241 in 85f8b2b
I'll check the history for the file and try to understand what could have leaded to this