Skip to content

Commit

Permalink
check if organizer
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Jul 23, 2021
1 parent 71a807a commit 5e09026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldaptrombipy/caldav_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e09026

Please sign in to comment.