Skip to content

Commit 270f315

Browse files
birajsthashnizzedy
andauthored
Update CPAC/utils/utils.py
Co-authored-by: Jon Cluce <[email protected]>
1 parent df850fb commit 270f315

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CPAC/utils/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,8 @@ def afni_3dwarp(in_file, out_file=None, deoblique=False):
997997
try:
998998
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
999999
except subprocess.CalledProcessError as e:
1000-
raise RuntimeError(f"3dWarp failed with error:\n{e.output.decode()}")
1000+
msg = f"3dWarp failed with error:\n{e.output.decode()}"
1001+
raise RuntimeError(msg)
10011002

10021003
return out_file
10031004

0 commit comments

Comments
 (0)