From 463cbde4b13be1e75703248aef365e127d66570d Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 1 Oct 2018 15:23:50 -0300 Subject: [PATCH] cast dict_keys to list before using as shortlist --- lbrynet/dht/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/dht/node.py b/lbrynet/dht/node.py index fb6c22fb6..33ba7e021 100644 --- a/lbrynet/dht/node.py +++ b/lbrynet/dht/node.py @@ -220,7 +220,7 @@ class Node(MockKademliaHelper): if not bootstrap_contacts: log.warning("no bootstrap contacts to ping") ping_result = yield _ping_contacts(bootstrap_contacts) - shortlist = ping_result.keys() + shortlist = list(ping_result.keys()) if not shortlist: log.warning("failed to ping %i bootstrap contacts", len(bootstrap_contacts)) defer.returnValue(None)