From c12575d8994680ed905876f09ba7c0520c72932e Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 30 Sep 2024 23:11:15 +0200 Subject: [PATCH] Corrected the logic --- bittensor_cli/cli.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index 15889f5d..0bc60825 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -2867,11 +2867,14 @@ def root_list_delegates( """ self.verbosity_handler(quiet, verbose) - if network and network == "finney": + if network: + if network == "finney": + network = "wss://archive.chain.opentensor.ai:443" + elif (conf_net := self.config.get("network")) == "finney": network = "wss://archive.chain.opentensor.ai:443" - elif self.config.get("network") == "finney": - network = "wss://archive.chain.opentensor.ai:443" - elif not network: + elif conf_net: + network = conf_net + else: network = "wss://archive.chain.opentensor.ai:443" sub = self.initialize_chain(network)