Skip to content

Commit 336204f

Browse files
Display proxy protocol scheme on error (#3571)
1 parent 6c7af96 commit 336204f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpx/_transports/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def __init__(
355355
else: # pragma: no cover
356356
raise ValueError(
357357
"Proxy protocol must be either 'http', 'https', 'socks5', or 'socks5h',"
358-
" but got {proxy.url.scheme!r}."
358+
f" but got {proxy.url.scheme!r}."
359359
)
360360

361361
async def __aenter__(self: A) -> A: # Use generics for subclass support.

0 commit comments

Comments
 (0)