If JSON decoding of a stream response fails, just ignore it since it's probably a blank line.
This commit is contained in:
parent
2767c7e1f7
commit
40e81f478f
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue