fix: runtime error during pot build (#25991)
This commit is contained in:
parent
4ce3c8582a
commit
bc26ab67dc
1 changed files with 3 additions and 0 deletions
|
|
@ -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 = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue