seitime-frappe/frappe/templates/pages/error.py
2016-02-08 14:20:26 +05:30

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;") }