akarri2001 / Notion-and-Google-Calendar-2-Way-Sync

2 Way Sync Between Notion Database and Google Calendar
GNU General Public License v3.0
354 stars 51 forks source link

Traceback Error - Index Error: List Index out of Range #7

Closed kayloremetre closed 3 years ago

kayloremetre commented 3 years ago

Traceback (most recent call last): File "C:\Users\User\Downloads\Notion-and-Google-Calendar-2-Way-Sync\Notion-GCal-2WaySync-Public.py", line 728, in CurrentCalList.append(el['properties'][Current_Calendar_Id_Notion_Name]['rich_text'][0]['text']['content']) IndexError: list index out of range

I always get this error when running the python, but the code works except for syncing my second calendar. Both calendars are mine.

P.S. I don't think it's a bug but I needed help so posted this here.

akarri2001 commented 3 years ago

That error usually means that the column on Notion that is supposed to store the current calendar id for that task is empty. The code should be filling in that column for each task as it runs. Can you ensure that the Current Calendar Id column on Notion is not empty (it should have the GCal Calendar Id stored as text in there).

A full tutorial will likely be coming in the next week (I recorded everything, but just need to edit the video so personal information isn't shown) so I think that will help out! :)

kayloremetre commented 3 years ago

Oh yeah. It is empty :(. I can wait for the video though, thank you!