-
Notifications
You must be signed in to change notification settings - Fork 535
Fix: String-based error inspection on Python 3 #2092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2092 +/- ##
==========================================
- Coverage 72.14% 72.13% -0.01%
==========================================
Files 1139 1138 -1
Lines 57310 57271 -39
Branches 8215 8207 -8
==========================================
- Hits 41344 41315 -29
+ Misses 14673 14664 -9
+ Partials 1293 1292 -1
Continue to review full report at Codecov.
|
Since these are |
I couldn't find anything in the docs one way or the other about the preferred API but I am trying it your way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to merge with the following reversion.
nipype/interfaces/io.py
Outdated
@@ -86,7 +86,7 @@ def copytree(src, dst, use_hardlink=False): | |||
copyfile(srcname, dstname, True, hashmethod='content', | |||
use_hardlink=use_hardlink) | |||
except (IOError, os.error) as why: | |||
errors.append((srcname, dstname, str(why))) | |||
errors.append((srcname, dstname, why.strerror)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IOError
does not have a strerror
attribute. I think here str()
is the more appropriate choice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
See #2091