@@ -767,25 +767,22 @@ def get_parents(
767
767
A tuple containing a boolean indicating success or failure, a list of formatted
768
768
parents [(proportion, parent)], and an error message (if applicable)
769
769
"""
770
- try :
771
- parents = self .substrate .query (
772
- module = "SubtensorModule" ,
773
- storage_function = "ParentKeys" ,
774
- params = [hotkey , netuid ],
775
- block_hash = self .determine_block_hash (block ),
776
- )
777
- if parents :
778
- formatted_parents = []
779
- for proportion , parent in parents .value :
780
- # Convert U64 to int
781
- formatted_child = decode_account_id (parent [0 ])
782
- normalized_proportion = u64_normalized_float (proportion )
783
- formatted_parents .append ((normalized_proportion , formatted_child ))
784
- return True , formatted_parents , ""
785
- else :
786
- return True , [], ""
787
- except SubstrateRequestException as e :
788
- return False , [], format_error_message (e )
770
+ parents = self .substrate .query (
771
+ module = "SubtensorModule" ,
772
+ storage_function = "ParentKeys" ,
773
+ params = [hotkey , netuid ],
774
+ block_hash = self .determine_block_hash (block ),
775
+ )
776
+ if parents :
777
+ formatted_parents = []
778
+ for proportion , parent in parents .value :
779
+ # Convert U64 to int
780
+ formatted_child = decode_account_id (parent [0 ])
781
+ normalized_proportion = u64_normalized_float (proportion )
782
+ formatted_parents .append ((normalized_proportion , formatted_child ))
783
+ return True , formatted_parents , ""
784
+ else :
785
+ return True , [], ""
789
786
790
787
def get_children (
791
788
self , hotkey : str , netuid : int , block : Optional [int ] = None
0 commit comments