Cleanliness
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user