Skip to content

Commit

Permalink
Fix HTTPError doc (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsotnikov authored Sep 4, 2020
1 parent 19b863a commit 642aabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class HTTPError(Exception):
response = httpx.get("https://www.example.com")
response.raise_for_status()
except httpx.HTTPError as exc:
print(f"HTTP Exception for {exc.request.url} - {exc.message}")
print(f"HTTP Exception for {exc.request.url} - {exc}")
```
"""

Expand Down

0 comments on commit 642aabd

Please sign in to comment.