Skip to content

Commit 799d320

Browse files
authored
Merge pull request #108 from neuroscout/fix/missing_josn
Make JSON's optional
2 parents 929d143 + d6db18c commit 799d320

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

neuroscout_cli/commands/install.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def download_data(self):
6464
path=str(self.preproc_dir.parents[0]))
6565

6666
# Get all JSON files
67-
get([str(p) for p in self.preproc_dir.rglob('*.json')])
67+
jsons = list(self.preproc_dir.rglob('*.json'))
68+
print(jsons)
69+
if jsons:
70+
get([str(p) for p in self.preproc_dir.rglob('*.json')])
6871

6972
layout = BIDSLayout(
7073
self.preproc_dir,

0 commit comments

Comments
 (0)