From dc2bfae1e57089675c76ae77fd6ecc38d976ccd9 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 29 Jul 2011 09:39:35 +0000 Subject: Fixed #16531 -- Fixed various instances of "undefined name" issues. Thanks, Bruno ReniƩ. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@16557 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/debug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'django/views/debug.py') 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: -- cgit v1.3