Fix Calendar KeyError: 'Event' (#248)

This commit is contained in:
Quentame 2020-03-20 19:46:08 +01:00 committed by GitHub
parent aa24871e53
commit 0757bc6ff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class CalendarService(object):
Retrieves events for a given date range, by default, this month.
"""
self.refresh_client(from_dt, to_dt)
return self.response['Event']
return self.response.get('Event')
def calendars(self):
"""