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 #2

Open
diogosimao opened this issue Dec 10, 2020 · 1 comment
Open

IndexError: list index out #2

diogosimao opened this issue Dec 10, 2020 · 1 comment

Comments

@diogosimao
Copy link

Traceback (most recent call last):
  File "/usr/local/bin/notion-docs-sync", line 33, in <module>
    sys.exit(load_entry_point('notion-docs-sync', 'console_scripts', 'notion-docs-sync')())
  File "/app/notion_docs_sync/__init__.py", line 327, in main
    client = NotionClient(token_v2=token)
  File "/usr/local/lib/python3.8/site-packages/notion/client.py", line 68, in __init__
    self._update_user_info()
  File "/usr/local/lib/python3.8/site-packages/notion/client.py", line 77, in _update_user_info
    self.current_space = self.get_space(list(records["space"].keys())[0])
IndexError: list index out

I have no idea where it came from... if you need more info let me know!

@imnotjames
Copy link
Owner

imnotjames commented Dec 10, 2020

It could be that the API has changed a bit - but this seems like it might be an upstream issue? Not sure.

Were you just trying to run it at all?

Or was there a specific scenario that you ended p seeing this happen with?

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

2 participants