Fix Calendar KeyError: 'Event' (#248)
This commit is contained in:
parent
aa24871e53
commit
0757bc6ff2
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue