Skip to content

Commit

Permalink
Corrected the logic
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhaleking committed Sep 30, 2024
1 parent 1d6c5fd commit c12575d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bittensor_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c12575d

Please sign in to comment.