From 007dd4386180d7bd46d91981fbcb6084024440fd Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 7 May 2019 10:59:33 -0300 Subject: [PATCH] re-raise cancelled errors --- lbrynet/dht/blob_announcer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbrynet/dht/blob_announcer.py b/lbrynet/dht/blob_announcer.py index f965aa7b1..33ab4f70e 100644 --- a/lbrynet/dht/blob_announcer.py +++ b/lbrynet/dht/blob_announcer.py @@ -24,6 +24,8 @@ class BlobAnnouncer: else: log.warning("failed to announce %s, could only find %d peers, retrying soon.", blob_hash[:8], peers) except Exception as err: + if isinstance(err, asyncio.CancelledError): + raise err log.warning("error announcing %s: %s", blob_hash[:8], str(err))