From 930ecd845ab16d82715f8ec2fc4054a24aa8cd6e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 7 Jan 2024 19:47:50 +0100 Subject: [PATCH] fix CommandError args, fixes 8029 this is a fwd port from 1.4-maint and most of it was already done in master, so only a minor change in here. --- src/borg/archiver/key_cmds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/archiver/key_cmds.py b/src/borg/archiver/key_cmds.py index 81e1f0567..c3b4e457d 100644 --- a/src/borg/archiver/key_cmds.py +++ b/src/borg/archiver/key_cmds.py @@ -118,7 +118,7 @@ def do_key_import(self, args, repository): if not args.path: raise CommandError("expected input file to import key from") if args.path != "-" and not os.path.exists(args.path): - raise CommandError("input file does not exist: " + args.path) + raise CommandError(f"input file does not exist: {args.path}") manager.import_keyfile(args) def build_parser_keys(self, subparsers, common_parser, mid_common_parser):