Skip to content
Myr

Map `httpcore` transport close exceptions to `httpx` exceptions. (#1606)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent 81f385c · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:httpx/_transports/default.py+4 added-2 removed
160 unmodified lines
161 exc_type: typing.Type[BaseException] = None,162 exc_value: BaseException = None,163 traceback: TracebackType = None,164 ) -> None:165 with map_httpcore_exceptions():165 self._pool.__exit__(exc_type, exc_value, traceback)166 self._pool.__exit__(exc_type, exc_value, traceback)167168 def handle_request(169 self,170 method: bytes,
85 unmodified lines
256 exc_type: typing.Type[BaseException] = None,257 exc_value: BaseException = None,258 traceback: TracebackType = None,259 ) -> None:260 with map_httpcore_exceptions():259 await self._pool.__aexit__(exc_type, exc_value, traceback)261 await self._pool.__aexit__(exc_type, exc_value, traceback)262263 async def handle_async_request(264 self,265 method: bytes,
27 unmodified lines