From cce8e30bc41bf13d967eaf9e9202bf0f7ae199a4 Mon Sep 17 00:00:00 2001 From: Markus Birth <130302+mbirth@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:36:43 +0200 Subject: [PATCH] Fix PyKeePass complaining on trying to set empty username. --- convert.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/convert.py b/convert.py index 3c1a896..472f26f 100755 --- a/convert.py +++ b/convert.py @@ -105,7 +105,9 @@ for item in opif: if "username" in secure: entry.username = secure["username"] else: - entry.username = getField(item, "username") + username = getField(item, "username") + if username: + entry.username = username # Password if "password" in secure: