From 29826c5bba1d9d7595c5d07f27a538e0b7c35a46 Mon Sep 17 00:00:00 2001 From: ifrit98 Date: Sun, 8 Oct 2023 18:40:40 +0000 Subject: [PATCH] don't break on mismatched coldkey from local wallet <> chain --- bittensor/commands/overview.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bittensor/commands/overview.py b/bittensor/commands/overview.py index d262d92d6b..43e23552d2 100644 --- a/bittensor/commands/overview.py +++ b/bittensor/commands/overview.py @@ -281,7 +281,11 @@ def run(cli: "bittensor.cli"): total_emission = 0 for nn in neurons[str(netuid)]: - hotwallet = hotkey_coldkey_to_hotkey_wallet[nn.hotkey][nn.coldkey] + hotwallet = hotkey_coldkey_to_hotkey_wallet.get(nn.hotkey, {}).get( + nn.coldkey, None + ) + if not hotwallet: + continue nn: bittensor.NeuronInfoLite uid = nn.uid active = nn.active