don't parse empty stream chunks

pull/6767/head
Matt Way 11 years ago
parent f96618c967
commit 034ac93ca2

@ -137,6 +137,9 @@ class DockerImageManager:
self.changed = True self.changed = True
for chunk in stream: for chunk in stream:
if not chunk:
continue
chunk_json = json.loads(chunk) chunk_json = json.loads(chunk)
if 'error' in chunk_json: if 'error' in chunk_json:

Loading…
Cancel
Save