Skip to content

Commit 771ab93

Browse files
Apply suggestions from code review
1 parent 69e107f commit 771ab93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/pipeline/engine/workflows.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,10 +798,10 @@ def _has_attr(self, parameter, subtype="in"):
798798
return False
799799

800800
if subtype == "in":
801-
if not hasattr(node.inputs, attrname):
801+
if not hasattr(targetnode.inputs, attrname):
802802
return False
803803
else:
804-
if not hasattr(node.outputs, attrname):
804+
if not hasattr(targetnode.outputs, attrname):
805805
return False
806806

807807
if subtype == "in":

0 commit comments

Comments
 (0)