Skip item when it cannot be exported for any reason and warn user about it instead of failing export

Fixes #5
This commit is contained in:
David Němec 2021-03-05 18:04:07 +01:00
parent dc5ffdf00b
commit 8e485b1844
No known key found for this signature in database
GPG Key ID: B1064EFFFD11AA75

View File

@ -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: