Skip to content

Commit 61d90b9

Browse files
committed
fix: update the get children function
1 parent 93fa913 commit 61d90b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bittensor_cli/src/commands/stake/children_hotkeys.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,14 @@ async def _render_table(
499499
)
500500
if not success:
501501
print_error(f"Failed to get children from subtensor: {err_mg}")
502+
503+
# Always render the table, even if there are no children
502504
if children:
503505
netuid_children_tuples = [(netuid, children)]
504-
await _render_table(get_hotkey_pub_ss58(wallet), netuid_children_tuples)
506+
else:
507+
netuid_children_tuples = []
505508

509+
await _render_table(get_hotkey_pub_ss58(wallet), netuid_children_tuples)
506510
return children
507511

508512

0 commit comments

Comments
 (0)