diff --git a/docker/api/client.py b/docker/api/client.py index 2667922d9..7733d3343 100644 --- a/docker/api/client.py +++ b/docker/api/client.py @@ -267,7 +267,7 @@ def _raise_for_status(self, response): try: response.raise_for_status() except requests.exceptions.HTTPError as e: - raise create_api_error_from_http_exception(e) + raise create_api_error_from_http_exception(e) from e def _result(self, response, json=False, binary=False): assert not (json and binary)