re-raise cancelled errors

This commit is contained in:
Victor Shyba 2019-05-07 10:59:33 -03:00
parent 1bc4e4b702
commit 007dd43861

View file

@ -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))