Don't extend calendar events will null values
This commit is contained in:
parent
8d497b0be7
commit
b3ffb29726
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue