From c8384edebe8958497773ab283b8bf01d137d2c2a Mon Sep 17 00:00:00 2001 From: Markus Birth <130302+mbirth@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:35:27 +0200 Subject: [PATCH] Fix bug with adding kdbx-extension to output filename. --- convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.py b/convert.py index e1fdd53..554c8f9 100755 --- a/convert.py +++ b/convert.py @@ -20,7 +20,7 @@ if not args.outfile: args.outfile = "{}.kdbx".format(fileparts[0]) outparts = splitext(args.outfile) -if not outparts[1] == "kdbx": +if outparts[1] != ".kdbx": args.outfile += ".kdbx" kp = create_database(args.outfile, password="test")