Skip to content

Commit

Permalink
Make Black and Pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fredjn committed Jun 4, 2024
1 parent c6fc16e commit 6fa23a4
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions python/src/etos_api/library/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,12 @@ async def validate(self, test_suite_url):
result = await docker.digest(test_runner)
if result:
break
else:
self.logger.warning(
"Test runner %s validation unsuccessful, retrying %d more times",
test_runner,
3 - attempt,
)
await asyncio.sleep(random.randint(1, 3 ))

assert (
result is not None
), f"Test runner {test_runner} not found"

self.logger.warning(
"Test runner %s validation unsuccessful, retrying %d more times",
test_runner,
3 - attempt,
)
await asyncio.sleep(random.randint(1, 3))

assert result is not None, f"Test runner {test_runner} not found"

0 comments on commit 6fa23a4

Please sign in to comment.