14 lines
339 B
Python
14 lines
339 B
Python
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# License: MIT. See LICENSE
|
|
import frappe
|
|
|
|
no_cache = 1
|
|
|
|
|
|
def get_context(context):
|
|
if frappe.flags.in_migrate:
|
|
return
|
|
context.http_status_code = 500
|
|
|
|
print(frappe.get_traceback())
|
|
return {"error": frappe.get_traceback().replace("<", "<").replace(">", ">")}
|