Skip to content

Map httpcore transport close exceptions to httpx exceptions.#1606

Merged
lovelydinosaur merged 5 commits into
masterfrom
map-transport-close-exceptions
Apr 29, 2021
Merged

Map httpcore transport close exceptions to httpx exceptions.#1606
lovelydinosaur merged 5 commits into
masterfrom
map-transport-close-exceptions

Conversation

@lovelydinosaur
Copy link
Copy Markdown
Contributor

Refs specific comment here: https://github.com/encode/httpx/issues/1459#issuecomment-826834566

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.

@lovelydinosaur lovelydinosaur added the user-experience Ensuring that users have a good experience using the library label Apr 28, 2021
@lovelydinosaur lovelydinosaur merged commit 589c5a0 into master Apr 29, 2021
@lovelydinosaur lovelydinosaur deleted the map-transport-close-exceptions branch April 29, 2021 11:37
@lovelydinosaur lovelydinosaur 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.

2 participants