From 976742f8da6245a281ae53c911036a2927e4fff2 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Fri, 21 Feb 2025 20:32:40 -0500 Subject: [PATCH] use chk_take = 0 if None --- bittensor_cli/src/commands/stake/children_hotkeys.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bittensor_cli/src/commands/stake/children_hotkeys.py b/bittensor_cli/src/commands/stake/children_hotkeys.py index ef50a5232..89b5ade4f 100644 --- a/bittensor_cli/src/commands/stake/children_hotkeys.py +++ b/bittensor_cli/src/commands/stake/children_hotkeys.py @@ -671,6 +671,8 @@ async def display_chk_take(ss58, netuid): chk_take = await get_childkey_take( subtensor=subtensor, netuid=netuid, hotkey=ss58 ) + if chk_take is None: + chk_take = 0 chk_take = u16_to_float(chk_take) console.print( f"Child take for {ss58} is: {chk_take * 100:.2f}% on netuid {netuid}."