maxmind / GeoIP2-python

Python code for GeoIP2 webservice client and database reader
https://geoip2.readthedocs.org/en/latest/
Apache License 2.0
1.11k stars 141 forks source link

Hand over raw response for HTTP errors #95

Closed Krokop closed 4 years ago

Krokop commented 4 years ago

There is no way to get response when HTTPError raises. It would be great to have decoded_body in HTTPError when it exists.

oschwald commented 4 years ago

Thanks for the suggestion. This will be in 4.1.0, which should be released shortly.