diff --git a/frappe/email/doctype/email_account/email_account.py b/frappe/email/doctype/email_account/email_account.py index 50daf1cf72..cc02cfa0ff 100755 --- a/frappe/email/doctype/email_account/email_account.py +++ b/frappe/email/doctype/email_account/email_account.py @@ -293,7 +293,7 @@ class EmailAccount(Document): else: frappe.db.commit() - if communication: + if communication and hasattr(communication, "_attachments"): attachments = [d.file_name for d in communication._attachments] communication.notify(attachments=attachments, fetched_from_email_account=True)