If JSON decoding of a stream response fails, just ignore it since it's probably a blank line.

This commit is contained in:
Jake Moshenko 2014-03-27 22:15:59 +00:00
parent 2767c7e1f7
commit 40e81f478f

View file

@ -51,7 +51,10 @@ class StatusWrapper(object):
def unwrap_stream(json_stream):
for json_entry in json_stream:
yield json.loads(json_entry).values()[0]
try:
yield json.loads(json_entry).values()[0]
except ValueError:
logger.debug('Invalid json block: %s' % json_entry)
class DockerfileBuildContext(object):