Skip to content

Commit

Permalink
🩹 temporary fixes to a weird exception being raised past its try catc…
Browse files Browse the repository at this point in the history
…h block
  • Loading branch information
PsicoThePato committed May 20, 2024
1 parent a79779b commit 3c59121
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/synthia/validator/text_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,12 @@ async def validate_step(
self._get_miner_prediction(val_info, (mod_info.address, mod_info.key))
)
futures.append(future)
miner_answers = await asyncio.gather(*futures)
miner_answers = await asyncio.gather(*futures, return_exceptions=True)
miner_answers = [
answer for answer in miner_answers if (
not isinstance(answer, BaseException)
)
]

for uid, miner_response in zip(modules_info.keys(), miner_answers):
miner_answer, val_info = miner_response
Expand Down

0 comments on commit 3c59121

Please sign in to comment.