don't parse empty stream chunks
This commit is contained in:
parent
f96618c967
commit
034ac93ca2
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ class DockerImageManager:
|
|||
self.changed = True
|
||||
|
||||
for chunk in stream:
|
||||
if not chunk:
|
||||
continue
|
||||
|
||||
chunk_json = json.loads(chunk)
|
||||
|
||||
if 'error' in chunk_json:
|
||||
|
|
Loading…
Add table
Reference in a new issue