don't reflect empty last blob

This commit is contained in:
Jack Robison 2017-09-07 15:03:01 -04:00
parent 070978248e
commit b98cd24e10
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF

View file

@ -112,7 +112,7 @@ class EncryptedFileReflectorClient(Protocol):
def get_validated_blobs(self, blobs_in_stream):
def get_blobs(blobs):
for (blob, _, _, blob_len) in blobs:
if blob:
if blob and blob_len:
yield self.blob_manager.get_blob(blob, blob_len)
dl = defer.DeferredList(list(get_blobs(blobs_in_stream)), consumeErrors=True)