diff --git a/validator/weight_setting/benchmarking_api.py b/validator/weight_setting/benchmarking_api.py index c91e9b3f..2a4c75df 100644 --- a/validator/weight_setting/benchmarking_api.py +++ b/validator/weight_setting/benchmarking_api.py @@ -105,7 +105,9 @@ def send_submissions_to_api(version: str, all_apis: list[BenchmarkingApi], submi contest_api_assignment[lowest_contest_id].append(api) for contest_id, apis in contest_api_assignment.items(): - if contest_id not in submissions_by_contest and contest_id in ACTIVE_CONTESTS: + if not contest_id in ACTIVE_CONTESTS: + continue + if contest_id not in submissions_by_contest: raise RuntimeError(f"No API compatible with contest type {contest_id.name}") contest_submissions = submissions_by_contest[contest_id]