Cleanliness
This commit is contained in:
@@ -40,8 +40,7 @@ def wait_for_file(filename: str):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
logging.debug('%s not found, sleeping and retrying', filename)
|
logging.debug('%s not found, sleeping and retrying', filename)
|
||||||
loops += 1
|
loops += 1
|
||||||
if loops >= 10:
|
loops = min(loops, 10)
|
||||||
loops = 10
|
|
||||||
time.sleep(loops)
|
time.sleep(loops)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user