Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions httpx/_transports/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def __exit__(
exc_value: BaseException = None,
traceback: TracebackType = None,
) -> None:
self._pool.__exit__(exc_type, exc_value, traceback)
with map_httpcore_exceptions():
self._pool.__exit__(exc_type, exc_value, traceback)

def handle_request(
self,
Expand Down Expand Up @@ -256,7 +257,8 @@ async def __aexit__(
exc_value: BaseException = None,
traceback: TracebackType = None,
) -> None:
await self._pool.__aexit__(exc_type, exc_value, traceback)
with map_httpcore_exceptions():
await self._pool.__aexit__(exc_type, exc_value, traceback)

async def handle_async_request(
self,
Expand Down