remove unnecessary except/raise

This commit is contained in:
Jack Robison 2019-04-18 17:07:55 -04:00
parent 35479dcbd2
commit e2663f6d57
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1,7 +1,6 @@
import asyncio
import typing
import logging
import concurrent.futures
from lbrynet.utils import drain_tasks, cache_concurrent
from lbrynet.blob_exchange.client import request_blob
if typing.TYPE_CHECKING:
@ -126,8 +125,6 @@ class BlobDownloader:
blob.close()
log.debug("downloaded %s", blob_hash[:8])
return blob
except (concurrent.futures.CancelledError, asyncio.CancelledError) as err:
error = err
finally:
re_add = set()
while self.active_connections:
@ -138,7 +135,6 @@ class BlobDownloader:
if re_add:
self.peer_queue.put_nowait(list(re_add))
blob.close()
raise error
def close(self):
self.scores.clear()