You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In nipype/utils/spm_docs.py, the function _strip_header() has the code:
try:
index = doc.index(hdr)
...
except KeyError as e:
raise_from(IOError('This docstring was not generated by Nipype!\n'), e)
However, doc doesn't seem to be a dict type so KeyError wouldn't apply here.
If hdr is not found in doc, that would raise a ValueError, which is not caught by the code here.
This was the error I got
index = doc.index(hdr)
ValueError: substring not found
Ubuntu 18
The text was updated successfully, but these errors were encountered:
kchawla-pi
changed the title
Incorrect exception handling in spm_docs ?
Incorrect exception handling in utils/spm_docs.py ?
Sep 3, 2018
In
nipype/utils/spm_docs.py
, the function_strip_header()
has the code:However,
doc
doesn't seem to be a dict type soKeyError
wouldn't apply here.If
hdr
is not found indoc
, that would raise aValueError
, which is not caught by the code here.This was the error I got
Ubuntu 18
The text was updated successfully, but these errors were encountered: