andrewramsay/ical_to_gcal_sync

KeyError: 'summary'

Closed this issue · 4 comments

Hi,

I have started to get this error


Traceback (most recent call last):
  File "ical_to_gcal_sync.py", line 174, in <module>
    name = gcal_event['summary']
KeyError: 'summary'

How can i trace back what is causing it

Well the 'summary' field is supposed to contain the event name, do you have any Google calendar events that don't have a name/title set? You can try adding a print(gcal_event) on the previous line to see what's actually contained in each gcal_event object.

If it is just as simple as some of the Google events not having names then I can modify the script to fix that... the 'name' lookup isn't actually being used for anything much in that block of code anyway.

OK, I'll add a quick fix for this in case anyone else runs into the same problem.

should be fixed in d5a6865