From 1c56e2d6d3809315818b5e65f46860229685b462 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Tue, 22 May 2007 08:22:54 +0000 Subject: [PATCH] =?UTF-8?q?unicode:=20Encoded=20exception=20data=20safely?= =?UTF-8?q?=20in=20traceback=20output.=20Thanks,=20Thomas=20G=C3=BCttler.?= =?UTF-8?q?=20Refs=20#4300.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5315 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/debug.py b/django/views/debug.py index 352b4c880b..1a02c074ca 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -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,