Merge pull request #27667 from cogk/fix-UnboundLocalError-partial_mail

fix(email): Fix unbound variable in make_error_msg
This commit is contained in:
Akhil Narang 2024-09-05 17:43:36 +05:30 committed by GitHub
commit 5deba2e370
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -316,6 +316,7 @@ class EmailServer:
)
def make_error_msg(self, uid, msg_num):
partial_mail = None
traceback = frappe.get_traceback(with_context=True)
with suppress(Exception):
# retrieve headers