fix: check participant email exists before adding to guest list (#33944)
This commit is contained in:
parent
912e0e8be0
commit
ef34a7ce7d
1 changed files with 1 additions and 1 deletions
|
|
@ -802,7 +802,7 @@ def get_attendees(doc):
|
|||
|
||||
for participant in doc.event_participants:
|
||||
p_email = participant.get("email")
|
||||
if participant and p_email != owner:
|
||||
if p_email and p_email != owner:
|
||||
attendees.append({"email": p_email})
|
||||
else:
|
||||
email_not_found.append({"dt": participant.reference_doctype, "dn": participant.reference_docname})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue