mirror of https://github.com/docker/docker-py.git
Merge aada8a8317
into db7f8b8bb6
This commit is contained in:
commit
adb4e075ba
|
@ -359,6 +359,7 @@ class APIClient(
|
||||||
if decode:
|
if decode:
|
||||||
yield from json_stream(self._stream_helper(response, False))
|
yield from json_stream(self._stream_helper(response, False))
|
||||||
else:
|
else:
|
||||||
|
self._raise_for_status(response)
|
||||||
reader = response.raw
|
reader = response.raw
|
||||||
while not reader.closed:
|
while not reader.closed:
|
||||||
# this read call will block until we get a chunk
|
# this read call will block until we get a chunk
|
||||||
|
|
Loading…
Reference in New Issue