Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

error.py 384 B

123456789101112131415
  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. from __future__ import unicode_literals
  4. import webnotes
  5. from webnotes.webutils import render_blocks
  6. no_cache = 1
  7. no_sitemap = 1
  8. def get_context(context):
  9. error_context = {"error": webnotes.get_traceback()}
  10. error_context.update(context)
  11. return render_blocks(error_context)