From 2ad5f1ea24afad2242c66ae9f4bd051f36ae8416 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Wed, 14 Oct 2020 19:13:52 +0530 Subject: [PATCH] fix: handle FileAlreadyAttachedException while pulling email --- frappe/email/receive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/email/receive.py b/frappe/email/receive.py index 9ba080bfda..03aedec066 100644 --- a/frappe/email/receive.py +++ b/frappe/email/receive.py @@ -540,6 +540,8 @@ class Email: except MaxFileSizeReachedError: # WARNING: bypass max file size exception pass + except frappe.FileAlreadyAttachedException: + pass except frappe.DuplicateEntryError: # same file attached twice?? pass