We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
httpcore
httpx
1 parent 81f385c commit 589c5a0Copy full SHA for 589c5a0
httpx/_transports/default.py
@@ -162,7 +162,8 @@ def __exit__(
162
exc_value: BaseException = None,
163
traceback: TracebackType = None,
164
) -> None:
165
- self._pool.__exit__(exc_type, exc_value, traceback)
+ with map_httpcore_exceptions():
166
+ self._pool.__exit__(exc_type, exc_value, traceback)
167
168
def handle_request(
169
self,
@@ -256,7 +257,8 @@ async def __aexit__(
256
257
258
259
- await self._pool.__aexit__(exc_type, exc_value, traceback)
260
261
+ await self._pool.__aexit__(exc_type, exc_value, traceback)
262
263
async def handle_async_request(
264
0 commit comments