Skip to content

Commit 2549f61

Browse files
committed
testing json decoder error
1 parent 07d61fc commit 2549f61

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pydra/engine/boutiques.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ def __init__(
7070
elif zenodo:
7171
bosh_file = self._download_spec(zenodo)
7272

73-
with bosh_file.open() as f:
74-
try:
73+
try:
74+
with bosh_file.open() as f:
7575
self.bosh_spec = json.load(f)
76-
except json.decoder.JSONDecodeError:
76+
except json.decoder.JSONDecodeError:
77+
with bosh_file.open() as f:
7778
print(f.read())
7879
raise
7980

0 commit comments

Comments
 (0)