Skip to content

Commit 53bd585

Browse files
committed
checking if retry logic still needed with travis
1 parent f171828 commit 53bd585

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

pydra/engine/boutiques.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ def __init__(
6464
else:
6565
self.bosh_file = bosh_file
6666

67-
# retry logic - an error on travis is raised randomly, not able to reproduce
68-
tries, tries_max = 0, 7
69-
while tries < tries_max:
70-
try:
71-
with self.bosh_file.open() as f:
72-
self.bosh_spec = json.load(f)
73-
break
74-
except json.decoder.JSONDecodeError:
75-
tries += 1
76-
if tries == tries_max:
77-
raise
67+
with self.bosh_file.open() as f:
68+
self.bosh_spec = json.load(f)
69+
# # retry logic - an error on travis is raised randomly, not able to reproduce
70+
# tries, tries_max = 0, 7
71+
# while tries < tries_max:
72+
# try:
73+
# with self.bosh_file.open() as f:
74+
# self.bosh_spec = json.load(f)
75+
# break
76+
# except json.decoder.JSONDecodeError:
77+
# tries += 1
78+
# if tries == tries_max:
79+
# raise
7880

7981
self.input_spec = self._prepare_input_spec(names_subset=input_spec_names)
8082
self.output_spec = self._prepare_output_spec(names_subset=output_spec_names)

0 commit comments

Comments
 (0)