seitime-frappe/frappe/www/error.py

12 lines
342 B
Python

# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
no_cache = 1
no_sitemap = 1
def get_context(context):
print frappe.get_traceback().encode("utf-8")
return {"error": frappe.get_traceback().replace("<", "&lt;").replace(">", "&gt;") }