Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range in /find-authors-ids/ #36

Open
satyaog opened this issue Sep 27, 2023 · 0 comments
Open

IndexError: list index out of range in /find-authors-ids/ #36

satyaog opened this issue Sep 27, 2023 · 0 comments

Comments

@satyaog
Copy link
Member

satyaog commented Sep 27, 2023

with load_config(os.environ["PAPERONI_CONFIG"]) as cfg:
with cfg.database as db:
reaserchers = get_authors(author_name)
author_id = reaserchers[0].author_id

> 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/find-authors-ids.py", line 325, in app
>     author_id = reaserchers[0].author_id
>                 ~~~~~~~~~~~^^^
> IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant