django/tests/regressiontests/debug/views.py

6 lines
144 B
Python

from regressiontests.debug import BrokenException, except_args
def view_exception(request, n):
raise BrokenException(except_args[int(n)])