From 0757bc6ff217572a5076635b6900ca82879d3736 Mon Sep 17 00:00:00 2001 From: Quentame Date: Fri, 20 Mar 2020 19:46:08 +0100 Subject: [PATCH] Fix Calendar KeyError: 'Event' (#248) --- pyicloud/services/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyicloud/services/calendar.py b/pyicloud/services/calendar.py index 08cdd76..cad2913 100644 --- a/pyicloud/services/calendar.py +++ b/pyicloud/services/calendar.py @@ -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): """