Skip to content

Commit

Permalink
feat: remove attempts in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Dec 12, 2023
1 parent f42ab2b commit 7e49b60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/storybook.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,14 @@ 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
)

if code != 0:
raise Exception(code)
attempts += 1

os.unlink(tape)
if not os.path.exists(filename):
Expand Down

0 comments on commit 7e49b60

Please sign in to comment.