Skip to content

Commit 480c1f9

Browse files
committed
fixed a small issue with output listing
1 parent 5979cb8 commit 480c1f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/mrtrix3/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,8 @@ class MRConvert(MRTrix3Base):
666666
def _list_outputs(self):
667667
outputs = self.output_spec().get()
668668
outputs["out_file"] = op.abspath(self.inputs.out_file)
669-
outputs["json_export"] = op.abspath(self.inputs.json_export)
669+
if self.inputs.json_export:
670+
outputs["json_export"] = op.abspath(self.inputs.json_export)
670671
return outputs
671672

672673

0 commit comments

Comments
 (0)