Skip to content

add_entry: Allow None for title, username, password#430

Open
spaetz wants to merge 2 commits intolibkeepass:masterfrom
spaetz:none
Open

add_entry: Allow None for title, username, password#430
spaetz wants to merge 2 commits intolibkeepass:masterfrom
spaetz:none

Conversation

@spaetz
Copy link
Contributor

@spaetz spaetz commented Mar 10, 2026

Our docs allow None, so make it so. None gets translated to an empty string
in the XML for the "title", "username" and "password". There is a corresponding test which tests this case.

Fixes: #416

spaetz added 2 commits March 10, 2026 22:15
According to the docs, these parameters can also be passed None, in practice
that failed. Add a test that passed in None parameters, which fails before the
next commit that will allow these and passes after.
Our docs allow None, so make it so. None gets translated to an empty string
in the XML. There is a corresponding test which tests this case.

Fixes: libkeepass#416
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

Successfully merging this pull request may close these issues.

KP add_entry() None password

1 participant