-
Notifications
You must be signed in to change notification settings - Fork 532
Strange return values in nodes.py #1446
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
Comments
I have checked this with a colleague and maybe it is because I am using Python 3.5 and this is not being tested. The exception raised when I run it is:
My impression is that the
|
Anyway, IMO this small modification in the |
I have found an explanation on the matter here: |
I've made a PR #1447 to fix this. |
I am still getting this error, on Python 3.4.4, Nipype 12.0. I have had a look through the Python 3.5 release changes but I can't find reference to anything that would still cause this. |
@alexsavio Your previous comment seems to fix. I threw into PR #1551 |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Today I ran into an error on the
master
branch and went to check the code.I saw that the
yield
variables in:https://github.com/nipy/nipype/blob/master/nipype/pipeline/engine/nodes.py#L1154
don't make sense.
The thing is that
err
will be None always, if the exception is raised and thenerr
has a value the function will raise that exception instead ofyield
-ing the values.I am putting this issue here because I don't know what is the objective of this function. I guess that the code inside the exception needs an 'else: pass' and maybe a
finally
statement.The text was updated successfully, but these errors were encountered: