Skip to content

Commit 53822cb

Browse files
committed
add none check
1 parent fe15075 commit 53822cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bittensor_cli/src/bittensor/subtensor_interface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,8 @@ async def get_subnet_ema_tao_inflow(
22822282
params=[netuid],
22832283
block_hash=block_hash,
22842284
)
2285+
if not value:
2286+
return Balance.from_rao(0)
22852287
_, raw_ema_value = value
22862288
ema_value = fixed_to_float(raw_ema_value)
22872289
return Balance.from_rao(ema_value)

0 commit comments

Comments
 (0)