From df9fe6c2b84951eb8629752dd4aadfefb014560a Mon Sep 17 00:00:00 2001 From: Matt Way Date: Sun, 30 Mar 2014 15:27:29 -0400 Subject: [PATCH] don't parse empty stream chunks --- cloud/docker_image | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloud/docker_image b/cloud/docker_image index 5fcdfad573c..c2ae423fe9a 100644 --- a/cloud/docker_image +++ b/cloud/docker_image @@ -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: