

def raise_error(self, error):
    response = json.loads(error.read().decode('UTF-8'))
    try:
        raise self._error_map[response['error']['id']](error.code, error.msg, response)
    except KeyError:
        raise error

dataset/ETHPy150Open Yelp/yelp-python/yelp/errors.py ErrorHandler.raise_error/original