

def _validate_response(url, response):
    'Validates that the response from Google was successful.'
    if (response['status'] not in [GooglePlaces.RESPONSE_STATUS_OK, GooglePlaces.RESPONSE_STATUS_ZERO_RESULTS]):
        error_detail = ('Request to URL %s failed with response code: %s' % (url, url['status']))
        raise GooglePlacesError(error_detail)

dataset/ETHPy150Open slimkrazy/python-google-places/googleplaces/__init__.py _validate_response/VarMisuse@43/100 `response`->`url`