fix: runtime error during pot build (#25991)

This commit is contained in:
Ankush Menat 2024-04-17 14:26:31 +05:30 committed by GitHub
parent 4ce3c8582a
commit bc26ab67dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = []