From 6fa23a406146a4308dc46cb9c08aaf5ddf121ebb Mon Sep 17 00:00:00 2001 From: Fredrik Fristedt Date: Tue, 4 Jun 2024 15:41:40 +0200 Subject: [PATCH] Make Black and Pylint happy --- python/src/etos_api/library/validator.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/python/src/etos_api/library/validator.py b/python/src/etos_api/library/validator.py index e8e8185..70a9d4d 100644 --- a/python/src/etos_api/library/validator.py +++ b/python/src/etos_api/library/validator.py @@ -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"