From 119e0ec408698b1f47836e52045be3c10c6699a3 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 8 Apr 2019 10:58:45 -0400 Subject: [PATCH] cancelled error --- lbrynet/blob_exchange/downloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbrynet/blob_exchange/downloader.py b/lbrynet/blob_exchange/downloader.py index 38bf12ba3..d6cc46200 100644 --- a/lbrynet/blob_exchange/downloader.py +++ b/lbrynet/blob_exchange/downloader.py @@ -1,6 +1,7 @@ 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: @@ -125,7 +126,7 @@ class BlobDownloader: blob.close() log.debug("downloaded %s", blob_hash[:8]) return blob - except asyncio.CancelledError as err: + except (concurrent.futures.CancelledError, asyncio.CancelledError) as err: error = err finally: re_add = set()