Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError on run #12

Open
flavienbwk opened this issue Jan 20, 2024 · 1 comment
Open

AttributeError on run #12

flavienbwk opened this issue Jan 20, 2024 · 1 comment

Comments

@flavienbwk
Copy link

Hi, using a JSON dump from a Vaultwarden instance, I get the following error :

$ bw2kp -o bitwarden.kdbx -i mydump.json
Master Password: 

Fetching folders...
Fetching items...
Traceback (most recent call last):
  File "/home/administrateur/.local/bin/bw2kp", line 8, in <module>
    sys.exit(main())
  File "/home/administrateur/.local/lib/python3.10/site-packages/bitwarden_to_keepass/convert.py", line 328, in main
    convert(vars(args))
  File "/home/administrateur/.local/lib/python3.10/site-packages/bitwarden_to_keepass/convert.py", line 272, in convert
    kp_db.items_to_entries(bw_vault.fetch_bitwarden_items())
  File "/home/administrateur/.local/lib/python3.10/site-packages/bitwarden_to_keepass/convert.py", line 217, in items_to_entries
    self.kp_db.add_entry(dest_group, title, username, password, url=url, notes=notes, otp=totp)
  File "/home/administrateur/.local/lib/python3.10/site-packages/pykeepass/pykeepass.py", line 531, in add_entry
    destination_group.append(entry)
AttributeError: 'NoneType' object has no attribute 'append'
@k3karthic
Copy link
Owner

Apologies, I had a personal emergency and did not have the time to look into this issue.

I'm not sure how a null group was added for the given folderId. For now, I've added a check which will fall back to the root if this happens.

I've never used VaultWarden before, will create a sample vault and see if I can reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants