fix: Print disabled traceback in development
This commit is contained in:
parent
3275cc4c5a
commit
129eb72a2f
1 changed files with 2 additions and 1 deletions
|
|
@ -193,7 +193,8 @@ def handle_exception(e):
|
|||
|
||||
else:
|
||||
traceback = "<pre>" + sanitize_html(frappe.get_traceback()) + "</pre>"
|
||||
if frappe.local.flags.disable_traceback:
|
||||
# disable traceback in production if flag is set
|
||||
if frappe.local.flags.disable_traceback and not frappe.local.dev_server:
|
||||
traceback = ""
|
||||
|
||||
frappe.respond_as_web_page("Server Error",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue