Skip to content

Commit

Permalink
CN field is not always present.
Browse files Browse the repository at this point in the history
fix #63
  • Loading branch information
tonioo committed Dec 4, 2020
1 parent 6d7a63e commit 011c832
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modoboa_radicale/backends/caldav_.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ def _serialize_event(self, event):
.replace("mailto:", "")
.replace("MAILTO:", "")
)
cn = attendee.params.get("CN")
result["attendees"].append({
"display_name": attendee.params.get("CN")[0],
"display_name": cn[0] if cn else "",
"email": email
})
return result
Expand Down

0 comments on commit 011c832

Please sign in to comment.