Closed kellrott closed 3 years ago
Now call failure will throw original HTTPError exception, rather then creating a new one. The response should still be available ( see https://docs.python-requests.org/en/master/_modules/requests/exceptions/ )
OK, I tested this, and it seems to work. e.response.status_code is there, even though e.response is falsey (which I think is just Requests' design decision).
e.response.status_code
e.response
Now call failure will throw original HTTPError exception, rather then creating a new one. The response should still be available ( see https://docs.python-requests.org/en/master/_modules/requests/exceptions/ )