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:
commit
b65888f057
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue