Skip to content

Commit 74aa598

Browse files
committed
Ensure hotkeys are into lists before any processing
1 parent ab51411 commit 74aa598

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

bittensor_cli/cli.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3827,7 +3827,23 @@ def stake_remove(
38273827

38283828
if amount and amount <= 0:
38293829
print_error(f"You entered an incorrect unstake amount: {amount}")
3830-
raise typer.Exit()
3830+
return False
3831+
3832+
if include_hotkeys:
3833+
include_hotkeys = parse_to_list(
3834+
include_hotkeys,
3835+
str,
3836+
"Hotkeys must be a comma-separated list of ss58s or names, e.g., `--include-hotkeys hk1,hk2`.",
3837+
is_ss58=False,
3838+
)
3839+
3840+
if exclude_hotkeys:
3841+
exclude_hotkeys = parse_to_list(
3842+
exclude_hotkeys,
3843+
str,
3844+
"Hotkeys must be a comma-separated list of ss58s or names, e.g., `--exclude-hotkeys hk3,hk4`.",
3845+
is_ss58=False,
3846+
)
38313847

38323848
if (
38333849
not wallet_hotkey

0 commit comments

Comments
 (0)