mirror of
https://github.com/django/django.git
synced 2025-04-06 22:46:41 +00:00
[2.1.x] Refs #29353 -- Removed duplicated logic in StaticFilesHandler.get_response().
Thanks Sergey Fursov for spotting the issue. Backport of 1fac9740675b8dbea3952b58102a643c67e951e4 from master
This commit is contained in:
parent
c7d59825d7
commit
add57c7e27
@ -57,9 +57,6 @@ class StaticFilesHandler(WSGIHandler):
|
||||
try:
|
||||
return self.serve(request)
|
||||
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 super().get_response(request)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user