Skip to content

Commit 047fb48

Browse files
authored
Update cli.py to remove double negative typo
Ran into this error in the CLI stating the wallet did not not exist. Looked into if this is an intentional double negative. My research points to "no" it's a typo. Looking at the logic: 1. utils.is_valid_wallet(wallet) returns a tuple where the first element (valid[0]) indicates if the wallet exists 2. The condition if not valid[0]: triggers when the wallet does NOT exist 3. So the error message should indicate the wallet doesn't exist
1 parent d037620 commit 047fb48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ def wallet_ask(
17261726
valid = utils.is_valid_wallet(wallet)
17271727
if not valid[0]:
17281728
utils.err_console.print(
1729-
f"[red]Error: Wallet does not not exist. \n"
1729+
f"[red]Error: Wallet does not exist. \n"
17301730
f"Please verify your wallet information: {wallet}[/red]"
17311731
)
17321732
raise typer.Exit()

0 commit comments

Comments
 (0)