thibaultspriet / SyncNotionCalendar

Automate synchronization between Notion databases and Apple Calendar
139 stars 18 forks source link

Python version problem I think. #24

Closed adagolodjo closed 1 year ago

adagolodjo commented 1 year ago

Hi @thibaultspriet,

When I execute the code, I receive the following error. I believe this is related to the Python version. Could you please tell me which version of Python is compatible with your code? Thank you in advance, and for sharing your code.

Traceback (most recent call last): File "/Users/travail/plugin/SyncNotionCalendar/main.py", line 34, in <module> db.run() File "/Users/travail/plugin/SyncNotionCalendar/src/Database.py", line 213, in run live = self.get_live() File "/Users/travail/plugin/SyncNotionCalendar/src/Database.py", line 70, in get_live current_cards = self.notion_client.get_live_cards(self.id) File "/Users/travail/plugin/SyncNotionCalendar/src/notionClient.py", line 121, in get_live_cards _list_card = [Card(page) for page in _list_page] File "/Users/travail/plugin/SyncNotionCalendar/src/notionClient.py", line 121, in <listcomp> _list_card = [Card(page) for page in _list_page] File "/Users/travail/plugin/SyncNotionCalendar/src/notionClient.py", line 24, in __init__ self.title = page.get('properties').get('Name').get('title')[0].get('plain_text') AttributeError: 'NoneType' object has no attribute 'get'