From 78ad87d34994dcfb2e5fca2091b74d6f059dfdbf Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 11 Oct 2017 14:05:03 -0400 Subject: [PATCH] fix uncaught CancelledError in peer_list --- lbrynet/core/client/DHTPeerFinder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbrynet/core/client/DHTPeerFinder.py b/lbrynet/core/client/DHTPeerFinder.py index c24a8e112..488dce1ed 100644 --- a/lbrynet/core/client/DHTPeerFinder.py +++ b/lbrynet/core/client/DHTPeerFinder.py @@ -46,7 +46,10 @@ class DHTPeerFinder(object): if timeout is not None: reactor.callLater(timeout, _trigger_timeout) - peer_list = yield finished_deferred + try: + peer_list = yield finished_deferred + except defer.CancelledError: + peer_list = [] peers = set(peer_list) good_peers = []