From 71cb73cf63488f8f469d0020fc5c8d54e34cfb30 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 17 Feb 2022 10:55:35 +0100 Subject: [PATCH] FIX: The CN of the organizer may not necessarily be set in calendar.ical --- platypush/plugins/calendar/ical/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/calendar/ical/__init__.py b/platypush/plugins/calendar/ical/__init__.py index c8e8c7cda1..984466f0de 100644 --- a/platypush/plugins/calendar/ical/__init__.py +++ b/platypush/plugins/calendar/ical/__init__.py @@ -59,7 +59,7 @@ class CalendarIcalPlugin(Plugin, CalendarInterface): 'htmlLink': str(event.get('url')) if event.get('url') else None, 'organizer': { 'email': str(event.get('organizer')).replace('MAILTO:', ''), - 'displayName': event.get('organizer').params['cn'] + 'displayName': event.get('organizer').params.get('cn') } if event.get('organizer') else None, 'created': cls._convert_timestamp(event, 'created'),