Skip to content

Commit 91822be

Browse files
authored
Merge pull request #335 from opentensor/fix/chk-take-display-if-none
[fix] use chk_take = 0 if None
2 parents ef30f5b + 976742f commit 91822be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bittensor_cli/src/commands/stake/children_hotkeys.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,8 @@ async def display_chk_take(ss58, netuid):
671671
chk_take = await get_childkey_take(
672672
subtensor=subtensor, netuid=netuid, hotkey=ss58
673673
)
674+
if chk_take is None:
675+
chk_take = 0
674676
chk_take = u16_to_float(chk_take)
675677
console.print(
676678
f"Child take for {ss58} is: {chk_take * 100:.2f}% on netuid {netuid}."

0 commit comments

Comments
 (0)