summaryrefslogtreecommitdiff
path: root/django/views/debug.py
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-07-29 09:39:35 +0000
committerJannis Leidel <jannis@leidel.info>2011-07-29 09:39:35 +0000
commitdc2bfae1e57089675c76ae77fd6ecc38d976ccd9 (patch)
tree233b5ab605e406624189277a0db464f3afc8a3c1 /django/views/debug.py
parentdb594f90ba684f45bfc8033fb190afdf567ad9f0 (diff)
Fixed #16531 -- Fixed various instances of "undefined name" issues. Thanks, Bruno ReniƩ.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views/debug.py')
-rw-r--r--django/views/debug.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/views/debug.py b/django/views/debug.py
index 58d271b860..4cbe101b0f 100644
--- a/django/views/debug.py
+++ b/django/views/debug.py
@@ -5,6 +5,7 @@ import sys
import types
from django.conf import settings
+from django.core.exceptions import ImproperlyConfigured
from django.http import (HttpResponse, HttpResponseServerError,
HttpResponseNotFound, HttpRequest, build_request_repr)
from django.template import (Template, Context, TemplateDoesNotExist,
@@ -79,7 +80,7 @@ def get_exception_reporter_filter(request):
try:
default_exception_reporter_filter = getattr(mod, classname)()
except AttributeError:
- raise exceptions.ImproperlyConfigured('Default exception reporter filter module "%s" does not define a "%s" class' % (modname, classname))
+ raise ImproperlyConfigured('Default exception reporter filter module "%s" does not define a "%s" class' % (modname, classname))
if request:
return getattr(request, 'exception_reporter_filter', default_exception_reporter_filter)
else: