@classmethod
def _transform_response(cls, response):
    'Transforms worker success/error responses into a standard format.'
    try:
        parsed = transforms.loads(response.content)
        if (not cls._check_response(parsed)):
            raise ValueError
        return {_PAYLOAD: parsed[_PAYLOAD]}
    except:
        _LOG.error(('Unable to parse worker response: ' + response.content))
        return {_PAYLOAD: 'Received invalid response'}
Transforms worker success/error responses into a standard format.
@classmethod
def _transform_response(cls, response):
    
    try:
        parsed = transforms.loads(response.content)
        if (not cls._check_response(parsed)):
            raise ValueError
        return {_PAYLOAD: parsed[_PAYLOAD]}
    except:
        _LOG.error(('Unable to parse worker response: ' + response.content))
        return {_PAYLOAD: 'Received invalid response'}