mirror of
https://github.com/Hopiu/django.git
synced 2026-03-21 16:30:25 +00:00
handed exceptions with non-ASCII bytestring data and no working unicode method under Python 2.6 and higher. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12621 bcc190cf-cafb-0310-a4f2-bffc1f526a37
5 lines
144 B
Python
5 lines
144 B
Python
from regressiontests.debug import BrokenException, except_args
|
|
|
|
def view_exception(request, n):
|
|
raise BrokenException(except_args[int(n)])
|
|
|