Skip to content

Commit 9ab4075

Browse files
committed
catch IndexError and make non-orthogonal
1 parent 07cbbbd commit 9ab4075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def _create_ev_files(
218218
for j in range(0, num_evs[0] + 1):
219219
try:
220220
orthogonal = int(orthogonalization[i][j])
221-
except (KeyError, TypeError, ValueError):
221+
except (KeyError, TypeError, ValueError, IndexError):
222222
orthogonal = 0
223223
ev_txt += ev_ortho.substitute(c0=i, c1=j, orthogonal=orthogonal)
224224
ev_txt += "\n"

0 commit comments

Comments
 (0)