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'
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'