From adc79ec4041af934cab33f13c3736ba327ee857b Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sat, 11 Jun 2022 03:10:30 -0300 Subject: [PATCH] dht_crawler: only warn for missing key if it replied --- scripts/dht_crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dht_crawler.py b/scripts/dht_crawler.py index 0f6436253..1e6a7db20 100644 --- a/scripts/dht_crawler.py +++ b/scripts/dht_crawler.py @@ -193,7 +193,7 @@ class Crawler: pass self.set_latency(make_kademlia_peer(key, address, port), latency if key else None) if not latency or not key: - if not key: + if latency and not key: log.warning("No node id from %s:%d", host, port) return set() node_id = key