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

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.
This commit is contained in:
Thomas Waldmann 2024-01-07 19:47:50 +01:00
parent 74129e539b
commit 930ecd845a
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

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