Show More
@@ -27,7 +27,7 b' def wait_file(path, timeout=10):' | |||
|
27 | 27 | timeout *= _timeout_factor() |
|
28 | 28 | start = time.time() |
|
29 | 29 | while not os.path.exists(path): |
|
30 | if time.time() - start > timeout: | |
|
30 | if timeout and time.time() - start > timeout: | |
|
31 | 31 | raise RuntimeError(b"timed out waiting for file: %s" % path) |
|
32 | 32 | time.sleep(0.01) |
|
33 | 33 |
General Comments 0
You need to be logged in to leave comments.
Login now