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

Error when trying to display person + relation type properties #9

Open
jshum opened this issue Sep 20, 2023 · 1 comment
Open

Error when trying to display person + relation type properties #9

jshum opened this issue Sep 20, 2023 · 1 comment

Comments

@jshum
Copy link

jshum commented Sep 20, 2023

Traceback (most recent call last):
  File "/usr/local/bin/list", line 8, in <module>
    sys.exit(app())
  File "/usr/local/lib/python3.9/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1666, in invoke
    rv = super().invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/typer/main.py", line 532, in wrapper
    return callback(**use_params)  # type: ignore
  File "/usr/local/lib/python3.9/site-packages/notion_cli_list_manager/main.py", line 122, in main
    page.all(db)
  File "/usr/local/lib/python3.9/site-packages/notion_cli_list_manager/page.py", line 38, in all
    index, x, pages_dict = page.query(database, x = x, properties_list=properties_list)
  File "/usr/local/lib/python3.9/site-packages/notion_cli_list_manager/page.py", line 142, in query
    full_string += p.get("name") + " "
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Think it has issues when trying to display a Person + Relation type property. I think you don't support it in the code right now but would be cool if it did

@jacksalici
Copy link
Owner

Thanks for pointing that out, I will try to include that in the next major version of the app!

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