Skip to content

Commit 8c8e7d8

Browse files
committed
raise error, instead of return None, to keep it retrocompatible
1 parent b5d79b4 commit 8c8e7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/filemanip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def loadpkl(infile, versioning=False):
665665
# Unpickling problems
666666
except Exception as e:
667667
if not versioning:
668-
return None
668+
raise e
669669

670670
from nipype import __version__ as version
671671

0 commit comments

Comments
 (0)