File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -167,12 +167,14 @@ def get_scores(self, session_upto: int):
167
167
if (session_number <= session_upto - CONSIDERING_SESSION_COUNTS or
168
168
session_number > session_upto ):
169
169
continue
170
-
171
- winner = self .session_results [session_number ]["winner" ]
172
- competition_type = self .session_results [session_number ]["competition_type" ]
173
- if winner == - 1 :
174
- continue
175
- scores [winner ] += RESERVED_WEIGHTS [competition_type ]
170
+ try :
171
+ winner = self .session_results [session_number ]["winner" ]
172
+ competition_type = self .session_results [session_number ]["competition_type" ]
173
+ if winner == - 1 :
174
+ continue
175
+ scores [winner ] += RESERVED_WEIGHTS [competition_type ]
176
+ except Exception as e :
177
+ bt .logging .warning (f"Error getting scores: { e } " )
176
178
return scores
177
179
# scores = np.zeros(self.neuron.metagraph.n, dtype=np.float32)
178
180
# tiny_weight = 1 / 128
You can’t perform that action at this time.
0 commit comments