Skip to content

Commit c0d7cad

Browse files
committed
Fixed: Missing substring should raise ValueError not KeyError
- nipype issue# 2690
1 parent 37f3781 commit c0d7cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/spm_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ def _strip_header(doc):
5959
except ValueError:
6060
index = len(doc)
6161
return doc[:index]
62-
except KeyError as e:
62+
except ValueError as e:
6363
raise_from(IOError('This docstring was not generated by Nipype!\n'), e)

0 commit comments

Comments
 (0)