Skip to content

Commit 818da99

Browse files
committed
Fixed Python3 compatibility bug in exception raising
1 parent 7ecaefd commit 818da99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def _list_outputs(self):
685685
if not os.path.exists(outdir):
686686
try:
687687
os.makedirs(outdir)
688-
except OSError, inst:
688+
except OSError as inst:
689689
if 'File exists' in inst:
690690
pass
691691
else:

0 commit comments

Comments
 (0)