Do nothing, if process_request never completed (redirect)

def process_response(self, request, response):
        """ Do nothing, if process_request never completed (redirect)"""
        if not hasattr(request, 'location'):
            return response

        storage = storage_class(request=request, response=response)
        try:
            storage.set(location=request.location)
        except ValueError:
            # bad location_id
            pass
        return response