Skip to content

Commit

Permalink
Merge pull request #8101 from ThomasWaldmann/fix-commanderror-args-ma…
Browse files Browse the repository at this point in the history
…ster

fix CommandError args, fixes 8029
  • Loading branch information
ThomasWaldmann committed Feb 18, 2024
2 parents 74129e5 + 930ecd8 commit b65888f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/borg/archiver/key_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b65888f

Please sign in to comment.