From 642aabdac093cf9798f4881cbdd8b39bd3398bb5 Mon Sep 17 00:00:00 2001 From: Taras Sotnikov Date: Fri, 4 Sep 2020 19:22:05 +0200 Subject: [PATCH] Fix HTTPError doc (#1255) --- httpx/_exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpx/_exceptions.py b/httpx/_exceptions.py index 4d6837778a..260d14ee5f 100644 --- a/httpx/_exceptions.py +++ b/httpx/_exceptions.py @@ -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}") ``` """