Merge pull request #13111 from frappe/mergify/bp/version-13-hotfix/pr-13098
fix(setup): do not show messsage when exception is handled (backport #13098)
This commit is contained in:
commit
c5ee45f905
1 changed files with 6 additions and 2 deletions
|
|
@ -548,8 +548,12 @@ def extract_messages_from_code(code):
|
|||
|
||||
try:
|
||||
code = frappe.as_unicode(render_include(code))
|
||||
except (TemplateError, ImportError, InvalidIncludePath, IOError):
|
||||
# Exception will occur when it encounters John Resig's microtemplating code
|
||||
|
||||
# Exception will occur when it encounters John Resig's microtemplating code
|
||||
except (TemplateError, ImportError, InvalidIncludePath, IOError) as e:
|
||||
if isinstance(e, InvalidIncludePath):
|
||||
frappe.clear_last_message()
|
||||
|
||||
pass
|
||||
|
||||
messages = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue