From 8e485b184405d34f8de8dacd4f64258c9675e488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C4=9Bmec?= Date: Fri, 5 Mar 2021 18:04:07 +0100 Subject: [PATCH] Skip item when it cannot be exported for any reason and warn user about it instead of failing export Fixes #5 --- bitwarden-to-keepass.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitwarden-to-keepass.py b/bitwarden-to-keepass.py index 6577d66..25b0025 100644 --- a/bitwarden-to-keepass.py +++ b/bitwarden-to-keepass.py @@ -61,7 +61,9 @@ def bitwarden_to_keepass(args): if 'already exists' in str(e): is_duplicate_title = True continue - raise e + + logging.warning(f'Skipping item named "{item["name"]}" because of this error: {repr(e)}') + break totp_secret, totp_settings = bw_item.get_totp() if totp_secret and totp_settings: