Skip to content

Strange return values in nodes.py #1446

Closed
@alexsavio

Description

@alexsavio

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 then err has a value the function will raise that exception instead of yield-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions