Merge pull request #9201 from Thunderbottom/email-account-com-fix
fix(email): check if communication hasattr for attachment
This commit is contained in:
commit
5ef0c80ee4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue