-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attach Request and Response to HttpProcessingError raised from client #1705
Labels
Comments
could you provide PR in this repo https://github.com/aio-libs/aiohttp |
Yeah, is that the new canonical repo? |
I dont really want to document ClientRequest class, too much specific low level details. otherwise any PRs are welcome |
Merged
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
With request's Response.raise_for_status, the raised exception has the request and responses that caused that status attached to it. This allows handling of error codes + content to be off loaded from the calling code (into a decorator etc).
If there's interest, I'm happy to put together a PR.
The text was updated successfully, but these errors were encountered: