diff --git a/frappe/core/doctype/communication/communication.py b/frappe/core/doctype/communication/communication.py index 6db113b0d1..9e2587bc82 100644 --- a/frappe/core/doctype/communication/communication.py +++ b/frappe/core/doctype/communication/communication.py @@ -172,7 +172,7 @@ class Communication(Document): first_name, last_name = frappe.db.get_value('Contact', filters={'email_id': sender_email}, fieldname=['first_name', 'last_name'] - ) + ) or [None, None] self.sender_full_name = (first_name or '') + (last_name or '') if not self.sender_full_name: