Skip to content

Commit 8661179

Browse files
committed
BF: newer matlab's don't contain cruft
1 parent cd99528 commit 8661179

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nipype/utils/spm_docs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def _strip_header(doc):
4949
index += len(hdr)
5050
index += 2
5151
doc = doc[index:]
52-
index = doc.index(cruft)
52+
try:
53+
index = doc.index(cruft)
54+
except ValueError:
55+
index = len(doc)
5356
return doc[:index]
5457
except KeyError:
5558
raise IOError('This docstring was not generated by Nipype!\n')

0 commit comments

Comments
 (0)