Skip to content

Commit cf3695e

Browse files
committed
FIX: Do not crash on missing ANTs version info
1 parent 8680bd8 commit cf3695e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fmriprep/workflows/bold/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ def init_enhance_and_skullstrip_bold_wf(
290290
name='init_aff',
291291
n_procs=omp_nthreads)
292292

293-
if parseversion(Registration().version) > Version('2.2.0'):
293+
# Registration().version may be None
294+
if parseversion(Registration().version or '0.0.0') > Version('2.2.0'):
294295
init_aff.inputs.search_grid = (40, (0, 40, 40))
295296

296297
# Set up spatial normalization

0 commit comments

Comments
 (0)