Skip to content

Commit

Permalink
update for get_current_weight_commit_info
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-opentensor committed Jan 6, 2025
1 parent 131d49a commit c217967
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bittensor/core/async_subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,9 +1135,7 @@ async def get_current_weight_commit_info(
reuse_block_hash=reuse_block,
)

commits = result.records[0][1] if result and hasattr(result, "records") else []
if not commits:
return []
commits = result.records[0][1] if result.records else []
return [WeightCommitInfo.from_vec_u8(commit) for commit in commits]

async def get_delegate_by_hotkey(
Expand Down

0 comments on commit c217967

Please sign in to comment.