From bc26ab67dc8c19f68dafb452d43a2ee711751f6e Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 17 Apr 2024 14:26:31 +0530 Subject: [PATCH] fix: runtime error during pot build (#25991) --- frappe/gettext/extractors/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frappe/gettext/extractors/utils.py b/frappe/gettext/extractors/utils.py index e088a8409b..7898e82d15 100644 --- a/frappe/gettext/extractors/utils.py +++ b/frappe/gettext/extractors/utils.py @@ -44,6 +44,9 @@ def extract_messages_from_code(code): except (TemplateError, ImportError, InvalidIncludePath, OSError) as e: if isinstance(e, InvalidIncludePath) and hasattr(frappe.local, "message_log"): frappe.clear_last_message() + except RuntimeError: + # code depends on locals + pass messages = []