Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pykeepass/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def __init__(self, title=None, username=None, password=None, url=None,
expiry_time=expiry_time,
icon=icon
)
self._element.append(E.String(E.Key('Title'), E.Value(title)))
self._element.append(E.String(E.Key('UserName'), E.Value(username)))
self._element.append(E.String(E.Key('Title'), E.Value(title if title is not None else "")))
self._element.append(E.String(E.Key('UserName'), E.Value(username if username is not None else "")))
self._element.append(
E.String(E.Key('Password'), E.Value(password, Protected="True"))
E.String(E.Key('Password'), E.Value(password if password is not None else "", Protected="True"))
)
if url:
self._element.append(E.String(E.Key('URL'), E.Value(url)))
Expand Down
Loading