We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2549f61 commit 73fa5caCopy full SHA for 73fa5ca
pydra/engine/boutiques.py
@@ -70,13 +70,17 @@ def __init__(
70
elif zenodo:
71
bosh_file = self._download_spec(zenodo)
72
73
- try:
74
- with bosh_file.open() as f:
75
- self.bosh_spec = json.load(f)
76
- except json.decoder.JSONDecodeError:
77
78
- print(f.read())
79
- raise
+ # retry logic - an error on travis is raised randomly, not able to reproduce
+ tries = 0
+ while tries < 3:
+ try:
+ with bosh_file.open() as f:
+ self.bosh_spec = json.load(f)
+ break
80
+ except json.decoder.JSONDecodeError:
81
+ tries += 1
82
+ if tries == 3:
83
+ raise
84
85
if input_spec is None:
86
input_spec = self._prepare_input_spec()
0 commit comments