diff --git a/docs/storybook.py b/docs/storybook.py index 8c16b1e7..9713776b 100644 --- a/docs/storybook.py +++ b/docs/storybook.py @@ -125,8 +125,7 @@ def transform_chapter(chapter): if 'CI' in os.environ: vhs = "./vhs" - attempts = 0 - while not os.path.exists(filename) and attempts < 10: + while not os.path.exists(filename): code = subprocess.call( f"{vhs} -q {tape}", shell=True @@ -134,7 +133,6 @@ def transform_chapter(chapter): if code != 0: raise Exception(code) - attempts += 1 os.unlink(tape) if not os.path.exists(filename):