python-google-places
python-google-places copied to clipboard
Add status code as property of GooglePlacesError
Currently, if the Google Places API returns a status other than OK
or ZERO_RESULTS
, the library raises a GooglePlacesError
. However, that error simply has the offending status code in the exception message, which makes it hard for consuming code to figure out what happened. status_code
should be an attribute of GooglePlacesError
.