Skip to content

Commit b272715

Browse files
authored
Mapped aiohttp.ClientHttpProxyError to httpx.ProxyError (#25)
1 parent 2fcfccd commit b272715

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- Mapping proxy errors from `aiohttp` to `httpx` (#25).
6+
37
## 0.1.9 (15th October, 2025)
48

59
- Properly close the underlying aiohttp response after reading the content.

httpx_aiohttp/transport.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
aiohttp.ClientConnectorError: httpx.ConnectError,
1919
aiohttp.ClientPayloadError: httpx.ReadError,
2020
aiohttp.ClientProxyConnectionError: httpx.ProxyError,
21+
aiohttp.ClientHttpProxyError: httpx.ProxyError,
2122
aiohttp.client_exceptions.NonHttpUrlClientError: httpx.UnsupportedProtocol,
2223
aiohttp.client_exceptions.InvalidUrlClientError: httpx.UnsupportedProtocol,
2324
}

0 commit comments

Comments
 (0)