From 20b1f4b327e3252034c9043f99810f513c032fd2 Mon Sep 17 00:00:00 2001 From: Corentin Forler Date: Thu, 5 Sep 2024 13:49:55 +0200 Subject: [PATCH] fix(email): Fix unbound variable in make_error_msg UnboundLocalError: local variable 'partial_mail' referenced before assignment --- frappe/email/receive.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/email/receive.py b/frappe/email/receive.py index 0437ba7e28..d7f0ed0721 100644 --- a/frappe/email/receive.py +++ b/frappe/email/receive.py @@ -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