forked from LBRYCommunity/lbry-sdk
cast dict_keys to list before using as shortlist
This commit is contained in:
parent
1adce8b227
commit
463cbde4b1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue