Removed BaseHandler.get_exception_response().

Unused since 7d1b69dbe7.
This commit is contained in:
Tim Graham 2018-11-20 09:45:29 -05:00
parent 89a2216486
commit cafb34963c
1 changed files with 1 additions and 4 deletions

View File

@ -9,7 +9,7 @@ from django.urls import get_resolver, set_urlconf
from django.utils.log import log_response
from django.utils.module_loading import import_string
from .exception import convert_exception_to_response, get_exception_response
from .exception import convert_exception_to_response
logger = logging.getLogger('django.request')
@ -68,9 +68,6 @@ class BaseHandler:
view = transaction.atomic(using=db.alias)(view)
return view
def get_exception_response(self, request, resolver, status_code, exception):
return get_exception_response(request, resolver, status_code, exception, self.__class__)
def get_response(self, request):
"""Return an HttpResponse object for the given HttpRequest."""
# Setup default url resolver for this thread