Permalink
Browse files

[2.1.x] Refs #29353 -- Removed duplicated logic in StaticFilesHandler…

….get_response().

Thanks Sergey Fursov for spotting the issue.

Backport of 1fac974 from master
  • Loading branch information...
claudep authored and timgraham committed Jun 5, 2018
1 parent c7d5982 commit add57c7e27fa36be8ebec4df4a2cbad81e318070
Showing with 0 additions and 3 deletions.
  1. +0 −3 django/contrib/staticfiles/handlers.py
@@ -57,9 +57,6 @@ def get_response(self, request):
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)

0 comments on commit add57c7

Please sign in to comment.