forked from LBRYCommunity/lbry-sdk
do not consume errors on DeferredList
This commit is contained in:
parent
94a31922f7
commit
9742da348b
1 changed files with 4 additions and 2 deletions
|
@ -49,9 +49,11 @@ class HTTPBlobDownloader(object):
|
||||||
for blob_hash in self.blob_hashes:
|
for blob_hash in self.blob_hashes:
|
||||||
blob = yield self.blob_manager.get_blob(blob_hash)
|
blob = yield self.blob_manager.get_blob(blob_hash)
|
||||||
if not blob.verified:
|
if not blob.verified:
|
||||||
dl.append(self.semaphore.run(self.download_blob, blob))
|
d = self.semaphore.run(self.download_blob, blob)
|
||||||
|
d.addErrback(lambda err: err.check(defer.TimeoutError, defer.CancelledError))
|
||||||
|
dl.append(d)
|
||||||
self.deferreds = dl
|
self.deferreds = dl
|
||||||
yield defer.DeferredList(dl, consumeErrors=True)
|
yield defer.DeferredList(dl)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def download_blob(self, blob):
|
def download_blob(self, blob):
|
||||||
|
|
Loading…
Reference in a new issue