Skip to content
Myr

Fix HTTPError doc (#1255)

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

authored by Taras Sotnikov · committed by GitHub · parent 19b863a · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/_exceptions.py+1 added-1 removed
53 unmodified lines
54 try:55 response = httpx.get("https://www.example.com")56 response.raise_for_status()57 except httpx.HTTPError as exc:58 print(f"HTTP Exception for {exc.request.url} - {exc.message}")58 print(f"HTTP Exception for {exc.request.url} - {exc}")59 ```60 """6162 def __init__(self, message: str, *, request: "Request") -> None:
316 unmodified lines