Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'summary' #6

Closed
adambarnett52 opened this issue Oct 31, 2019 · 4 comments
Closed

KeyError: 'summary' #6

adambarnett52 opened this issue Oct 31, 2019 · 4 comments

Comments

@adambarnett52
Copy link

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

@andrewramsay
Copy link
Owner

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.

@adambarnett52
Copy link
Author

adambarnett52 commented Oct 31, 2019 via email

@andrewramsay
Copy link
Owner

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

@andrewramsay
Copy link
Owner

should be fixed in d5a6865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants