浏览代码

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 年之前
父节点
当前提交
930ecd845a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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):