mirror of https://github.com/docker/docker-py.git
raise exception from chunked responses
Signed-off-by: Justice Sidhu <sidhujus@amazon.com>
This commit is contained in:
parent
bd164f928a
commit
aada8a8317
|
@ -349,6 +349,7 @@ class APIClient(
|
|||
if decode:
|
||||
yield from json_stream(self._stream_helper(response, False))
|
||||
else:
|
||||
self._raise_for_status(response)
|
||||
reader = response.raw
|
||||
while not reader.closed:
|
||||
# this read call will block until we get a chunk
|
||||
|
|
Loading…
Reference in New Issue