]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Display proxy protocol scheme on error (#3571)
authorEmmanuel Ferdman <emmanuelferdman@gmail.com>
Mon, 2 Jun 2025 19:29:52 +0000 (22:29 +0300)
committerGitHub <noreply@github.com>
Mon, 2 Jun 2025 19:29:52 +0000 (20:29 +0100)
httpx/_transports/default.py

index d5aa05ff234fd3fbf4fee88c4a7d3e3c151a538f..fc8c70970a8d7a1101677ac8d9ed209b4a053a5b 100644 (file)
@@ -355,7 +355,7 @@ class AsyncHTTPTransport(AsyncBaseTransport):
         else:  # pragma: no cover
             raise ValueError(
                 "Proxy protocol must be either 'http', 'https', 'socks5', or 'socks5h',"
-                " but got {proxy.url.scheme!r}."
+                f" but got {proxy.url.scheme!r}."
             )
 
     async def __aenter__(self: A) -> A:  # Use generics for subclass support.