Skip to content
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

Map httpcore transport close exceptions to httpx exceptions. #1606

Merged
merged 5 commits into from
Apr 29, 2021

Conversation

tomchristie
Copy link
Member

Refs specific comment here: #1459 (comment)

I suggest a new title for this issue: httpx.AsyncClient.__aexit__() raises httpcore.CloseError instead of httpx.CloseError

As it happens, I think we may well want to be removing CloseError from being a thing in any case. If we have a non-graceful close we likely just want to mask that and continue on regardless. However, this mapping is clearly the right thing to do at this point in time.

@tomchristie tomchristie added the user-experience Ensuring that users have a good experience using the library label Apr 28, 2021
@tomchristie tomchristie merged commit 589c5a0 into master Apr 29, 2021
@tomchristie tomchristie deleted the map-transport-close-exceptions branch April 29, 2021 11:37
@tomchristie tomchristie mentioned this pull request Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-experience Ensuring that users have a good experience using the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants