From cafb34963c1282e1ab79b34a5028b14107db57ed Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 20 Nov 2018 09:45:29 -0500 Subject: [PATCH] Removed BaseHandler.get_exception_response(). Unused since 7d1b69dbe7f72ac04d2513f0468fe2146231b286. --- django/core/handlers/base.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index 8eddad0e62..d8f4b446b7 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -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