Skip to content

Commit 1fa629d

Browse files
committed
adding retries number
1 parent 73fa5ca commit 1fa629d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydra/engine/boutiques.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ def __init__(
7171
bosh_file = self._download_spec(zenodo)
7272

7373
# retry logic - an error on travis is raised randomly, not able to reproduce
74-
tries = 0
75-
while tries < 3:
74+
tries, tries_max = 7
75+
while tries < tries_max:
7676
try:
7777
with bosh_file.open() as f:
7878
self.bosh_spec = json.load(f)
7979
break
8080
except json.decoder.JSONDecodeError:
8181
tries += 1
82-
if tries == 3:
82+
if tries == tries_max:
8383
raise
8484

8585
if input_spec is None:

0 commit comments

Comments
 (0)