Fix HTTPError doc (#1255)

This commit is contained in:
Taras Sotnikov 2020-09-04 19:22:05 +02:00 committed by GitHub
parent 19b863af40
commit 642aabdac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}")
```
"""