Cleanliness

This commit is contained in:
2024-07-06 17:31:55 +02:00
parent 5bbb7c30b9
commit 7aad78755f

View File

@ -40,8 +40,7 @@ def wait_for_file(filename: str):
except FileNotFoundError:
logging.debug('%s not found, sleeping and retrying', filename)
loops += 1
if loops >= 10:
loops = 10
loops = min(loops, 10)
time.sleep(loops)
return None