def _api_parse_error(self, response):
        if 'data' in response:
            if response['data'] == 'invalid_api_key':
                raise InvalidCredsError("Oops!  You've entered an invalid API key")
            else:
                raise DreamhostAPIException(response['data'])
        else:
            raise DreamhostAPIException("Unknown problem: %s" % (self.body))
dataset/ETHPy150Open cloudkick/libcloud/libcloud/compute/drivers/dreamhost.py/DreamhostResponse._api_parse_error/original