Skip to content

Commit abe83dd

Browse files
stilley2effigies
andauthored
Update nipype/interfaces/io.py
Co-Authored-By: Chris Markiewicz <[email protected]>
1 parent 0d18f98 commit abe83dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2883,7 +2883,7 @@ class ExportFile(BaseInterface):
28832883

28842884
def _run_interface(self, runtime):
28852885
if not self.inputs.clobber and op.exists(self.inputs.out_file):
2886-
raise FileExistsError(errno.EEXIST, f'File {self.inputs.out_file} exists')
2886+
raise FileExistsError(errno.EEXIST, 'File %s exists' % self.inputs.out_file)
28872887
if (self.inputs.check_extension and
28882888
op.splitext(self.inputs.in_file)[1] != op.splitext(self.inputs.out_file)[1]):
28892889
raise RuntimeError(f'{self.inputs.in_file} and {self.inputs.out_file} have different extensions')

0 commit comments

Comments
 (0)