Skip to content

Commit 7d71798

Browse files
committed
Don't use strerror on IOError object
1 parent 86581c5 commit 7d71798

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
@@ -86,7 +86,7 @@ def copytree(src, dst, use_hardlink=False):
8686
copyfile(srcname, dstname, True, hashmethod='content',
8787
use_hardlink=use_hardlink)
8888
except (IOError, os.error) as why:
89-
errors.append((srcname, dstname, why.strerror))
89+
errors.append((srcname, dstname, str(why)))
9090
# catch the Error from the recursive copytree so that we can
9191
# continue with other files
9292
except Exception as err:

0 commit comments

Comments
 (0)