Refs #29353 -- Removed duplicated logic in StaticFilesHandler.get_response().
Thanks Sergey Fursov for spotting the issue.
This commit is contained in:
parent
3cf45af363
commit
1fac974067
|
@ -57,9 +57,6 @@ class StaticFilesHandler(WSGIHandler):
|
||||||
try:
|
try:
|
||||||
return self.serve(request)
|
return self.serve(request)
|
||||||
except Http404 as e:
|
except Http404 as e:
|
||||||
if settings.DEBUG:
|
|
||||||
from django.views import debug
|
|
||||||
return debug.technical_404_response(request, e)
|
|
||||||
return response_for_exception(request, e)
|
return response_for_exception(request, e)
|
||||||
return super().get_response(request)
|
return super().get_response(request)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue