소스 검색

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):