Moved unnecessarily nested import.

This commit is contained in:
Carlton Gibson 2019-05-07 17:25:05 +02:00
parent 6a92bcf55b
commit 34f589ba88
1 changed files with 1 additions and 2 deletions

View File

@ -6,6 +6,7 @@ from django.contrib.staticfiles import utils
from django.contrib.staticfiles.views import serve from django.contrib.staticfiles.views import serve
from django.core.handlers.exception import response_for_exception from django.core.handlers.exception import response_for_exception
from django.core.handlers.wsgi import WSGIHandler, get_path_info from django.core.handlers.wsgi import WSGIHandler, get_path_info
from django.http import Http404
class StaticFilesHandler(WSGIHandler): class StaticFilesHandler(WSGIHandler):
@ -51,8 +52,6 @@ class StaticFilesHandler(WSGIHandler):
return serve(request, self.file_path(request.path), insecure=True) return serve(request, self.file_path(request.path), insecure=True)
def get_response(self, request): def get_response(self, request):
from django.http import Http404
try: try:
return self.serve(request) return self.serve(request)
except Http404 as e: except Http404 as e: