Skip to content

Commit

Permalink
BF: reverse order of args for string %lation
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Dec 22, 2020
1 parent 7ad241c commit bfa2ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heudiconv/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def _safe_op_file(src, dest, operation, overwrite=False):
if not overwrite:
raise RuntimeError(
"was asked to %s %s but destination already exists: %s"
% (src, operation, dest)
% (operation, src, dest)
)
os.unlink(dest)
getattr(shutil, operation)(src, dest)
Expand Down

0 comments on commit bfa2ae3

Please sign in to comment.