1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

unicode: Encoded exception data safely in traceback output. Thanks, Thomas

Güttler. Refs #4300.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-05-22 08:22:54 +00:00
parent dd52eed2fb
commit 1c56e2d6d3

View File

@ -125,7 +125,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
t = Template(TECHNICAL_500_TEMPLATE, name='Technical 500 template')
c = Context({
'exception_type': exc_type.__name__,
'exception_value': exc_value,
'exception_value': smart_unicode(exc_value, errors='replace')
'frames': frames,
'lastframe': frames[-1],
'request': request,