Skip to content

Commit 25507ac

Browse files
Include underlying httpcore exception tracebacks (#1199)
1 parent 03cd88c commit 25507ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpx/_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def map_exceptions(
356356
raise
357357

358358
message = str(exc)
359-
raise mapped_exc(message, **kwargs) from None # type: ignore
359+
raise mapped_exc(message, **kwargs) from exc # type: ignore
360360

361361

362362
HTTPCORE_EXC_MAP = {

0 commit comments

Comments
 (0)