notion-py
notion-py copied to clipboard
get_all_properties throws and error
error AttributeError: 'NoneType' object has no attribute 'startswith'
import os
from notion.client import NotionClient
token = os.environ.get("NOTION_TOKEN")
PROJECT_COLLECTION = "<id of a collection>"
client = NotionClient(token, monitor=False)
collection = client.get_collection(PROJECT_COLLECTION)
projects = collection.get_rows()
project = projects[0]
project.get_all_properties() # <<<<
I faced same error too
Same here.
Same here. It happens on Person property. I ended up excluding created_by type of properties.