Browse Source

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.
Thomas Waldmann 1 year ago
parent
commit
930ecd845a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/archiver/key_cmds.py

+ 1 - 1
src/borg/archiver/key_cmds.py

@@ -118,7 +118,7 @@ class KeysMixIn:
             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):