diff --git a/ldaptrombipy/caldav_api.py b/ldaptrombipy/caldav_api.py index 53abd4c..92d87dc 100644 --- a/ldaptrombipy/caldav_api.py +++ b/ldaptrombipy/caldav_api.py @@ -52,7 +52,7 @@ def user_cal(email): "allDay": e.all_day, "editable": False, "location": e.location, - "organizer": f"{e.organizer.common_name}", + "organizer": f"{e.organizer.common_name if e.organizer else None}", "attendees": [f"{att.common_name} ({att.email})" for att in e.attendees] } r.append(event_as_dict)