fix: check participant email exists before adding to guest list (#33944)

This commit is contained in:
Anoop 2025-09-08 18:25:25 +05:30 committed by GitHub
parent 912e0e8be0
commit ef34a7ce7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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})