Skip to content

Commit bfa2ae3

Browse files
committed
BF: reverse order of args for string %lation
1 parent 7ad241c commit bfa2ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def _safe_op_file(src, dest, operation, overwrite=False):
379379
if not overwrite:
380380
raise RuntimeError(
381381
"was asked to %s %s but destination already exists: %s"
382-
% (src, operation, dest)
382+
% (operation, src, dest)
383383
)
384384
os.unlink(dest)
385385
getattr(shutil, operation)(src, dest)

0 commit comments

Comments
 (0)