fix: remove dev server condition
This commit is contained in:
parent
fa252691b6
commit
1693991702
1 changed files with 3 additions and 3 deletions
|
|
@ -16,8 +16,8 @@ def get_context(context):
|
|||
if not context.message:
|
||||
context.message = _("There was an error building this page")
|
||||
|
||||
allow_traceback = is_traceback_allowed() and not frappe.local.dev_server
|
||||
|
||||
return {
|
||||
"error": frappe.get_traceback().replace("<", "<").replace(">", ">") if allow_traceback else ""
|
||||
"error": frappe.get_traceback().replace("<", "<").replace(">", ">")
|
||||
if is_traceback_allowed()
|
||||
else ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue