Skip to content

Commit

Permalink
Merge pull request #562 from shaicoleman/handle-missing-event-creator
Browse files Browse the repository at this point in the history
Fix "KeyError: 'creator'" bug with private events
  • Loading branch information
dbarnett authored Aug 23, 2024
2 parents 8184417 + 8375dc6 commit 8becc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcalcli/gcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def _format_descr(descr, indent, box):
self.printer.msg(xstr, 'default')

if self.details.get('email') \
and 'email' in event['creator'] \
and 'email' in event.get('creator', {}) \
and event['creator']['email'].strip():
xstr = '%s Email: %s\n' % (
details_indent,
Expand Down

0 comments on commit 8becc7a

Please sign in to comment.