Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion turnstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def _set_output(cmd):

run = None
attempt = 0
while run is None and attempt < 10:
retry_me = True
while retry_me and attempt < 10:
try:
limit = 100
done = 0
Expand All @@ -89,6 +90,7 @@ def _set_output(cmd):
done += 1
if done == limit:
break
retry_me = False
except Exception as e:
if attempt == 9:
raise e
Expand Down