Merge pull request #16234 from anandology/show-traceback-as-string

fix: show traceback as string instead of bytes
This commit is contained in:
mergify[bot] 2022-03-10 05:01:35 +00:00 committed by GitHub
commit 302f4645e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,5 +8,5 @@ def get_context(context):
if frappe.flags.in_migrate: return
context.http_status_code = 500
print(frappe.get_traceback().encode("utf-8"))
print(frappe.get_traceback())
return {"error": frappe.get_traceback().replace("<", "&lt;").replace(">", "&gt;") }