Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bittensor_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3229,10 +3229,11 @@ def stake_remove(
ask_for=[WO.NAME, WO.PATH],
)
else:
if not hotkey_ss58_address and not wallet_hotkey:
if not hotkey_ss58_address and not wallet_hotkey:
hotkey_or_ss58 = Prompt.ask(
"Enter the [blue]hotkey[/blue] name or [blue]ss58 address[/blue] to unstake all from [dim](or enter 'all' to unstake from all hotkeys)[/dim]",
default=self.config.get("wallet_hotkey") or defaults.wallet.hotkey,
default=self.config.get("wallet_hotkey")
or defaults.wallet.hotkey,
)
else:
hotkey_or_ss58 = hotkey_ss58_address or wallet_hotkey
Expand Down
4 changes: 2 additions & 2 deletions bittensor_cli/src/bittensor/subtensor_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ async def __aenter__(self):
f"[yellow]Connecting to Substrate:[/yellow][bold white] {self}..."
):
try:
async with self.substrate:
return self
await self.substrate.initialize()
return self
except TimeoutError: # TODO verify
err_console.print(
"\n[red]Error[/red]: Timeout occurred connecting to substrate. "
Expand Down
Loading