1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

Merge pull request #8101 from ThomasWaldmann/fix-commanderror-args-master

fix CommandError args, fixes 8029
This commit is contained in:
TW 2024-02-18 14:33:35 +01:00 committed by GitHub
commit b65888f057
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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