fix blob list key error

This commit is contained in:
Jack Robison 2018-03-15 09:55:40 -04:00
parent 80fcb760b7
commit adb1291c09
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -3048,7 +3048,8 @@ class Daemon(AuthJSONRPCServer):
sd_hash = yield self.session.storage.get_sd_blob_hash_for_stream(stream_hash)
if stream_hash:
crypt_blobs = yield self.session.storage.get_blobs_for_stream(stream_hash)
blobs = [self.session.blob_manager.blobs[crypt_blob.blob_hash] for crypt_blob in crypt_blobs]
blobs = [self.session.blob_manager.blobs[crypt_blob.blob_hash] for crypt_blob in crypt_blobs
if crypt_blob.blob_hash is not None]
else:
blobs = []
# get_blobs_for_stream does not include the sd blob, so we'll add it manually