From: Tom Christie Date: Wed, 19 Aug 2020 16:38:52 +0000 (+0100) Subject: Include underlying httpcore exception tracebacks (#1199) X-Git-Tag: 0.14.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25507acdc965b2d6027e067720fde871282b7b58;p=thirdparty%2Fhttpx.git Include underlying httpcore exception tracebacks (#1199) --- diff --git a/httpx/_exceptions.py b/httpx/_exceptions.py index 9a46d7d2..4d683777 100644 --- a/httpx/_exceptions.py +++ b/httpx/_exceptions.py @@ -356,7 +356,7 @@ def map_exceptions( raise message = str(exc) - raise mapped_exc(message, **kwargs) from None # type: ignore + raise mapped_exc(message, **kwargs) from exc # type: ignore HTTPCORE_EXC_MAP = {