Skip to content

Update cli.py to remove double negative typo#606

Merged
thewhaleking merged 4 commits intoopentensor:stagingfrom
calebcgates:patch-1
Sep 8, 2025
Merged

Update cli.py to remove double negative typo#606
thewhaleking merged 4 commits intoopentensor:stagingfrom
calebcgates:patch-1

Conversation

@calebcgates
Copy link
Contributor

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

thewhaleking and others added 4 commits July 28, 2025 23:07
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
thewhaleking
thewhaleking previously approved these changes Sep 8, 2025
@thewhaleking thewhaleking changed the base branch from main to staging September 8, 2025 13:15
@thewhaleking thewhaleking dismissed their stale review September 8, 2025 13:15

The base branch was changed.

@thewhaleking thewhaleking merged commit b65a548 into opentensor:staging Sep 8, 2025
@thewhaleking thewhaleking mentioned this pull request Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants