From b3ffb2972655d9ce9dc87a58fd8c0093af035f51 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 20 Dec 2018 16:40:14 +0100 Subject: [PATCH] Don't extend calendar events will null values --- platypush/plugins/calendar/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/calendar/__init__.py b/platypush/plugins/calendar/__init__.py index ad226f27b..a5e9f4cf4 100644 --- a/platypush/plugins/calendar/__init__.py +++ b/platypush/plugins/calendar/__init__.py @@ -107,7 +107,8 @@ class CalendarPlugin(Plugin, CalendarInterface): events = [] for calendar in self.calendars: - events.extend(calendar.get_upcoming_events().output) + cal_events = calendar.get_upcoming_events().output or [] + events.extend(cal_events) events = sorted(events, key=lambda event: dateutil.parser.parse(