From: Taras Sotnikov Date: Fri, 4 Sep 2020 17:22:05 +0000 (+0200) Subject: Fix HTTPError doc (#1255) X-Git-Tag: 0.15.0~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=642aabdac093cf9798f4881cbdd8b39bd3398bb5;p=thirdparty%2Fhttpx.git Fix HTTPError doc (#1255) --- diff --git a/httpx/_exceptions.py b/httpx/_exceptions.py index 4d683777..260d14ee 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}") ``` """