Ticket #6992: 6992.diff

File 6992.diff, 701 bytes (added by guettli, 7 years ago)
  • django/core/handlers/wsgi.py

     
    207207                # Apply response middleware
    208208                for middleware_method in self._response_middleware:
    209209                    response = middleware_method(request, response)
     210                    assert not response is None, 'Response middleware method returned None %s' % (
     211                        middleware_method)
    210212                response = self.apply_response_fixes(request, response)
    211213        finally:
    212214            dispatcher.send(signal=signals.request_finished)
Back to Top