diff --git a/keyring/backends/kwallet.py b/keyring/backends/kwallet.py index 6326971a..891fb189 100644 --- a/keyring/backends/kwallet.py +++ b/keyring/backends/kwallet.py @@ -123,7 +123,7 @@ def get_credential(self, service, username): Otherwise, it will return the first username and password combo that it finds. """ if username is not None: - return self.get_password(service, username) + return SimpleCredential(str(username), self.get_password(service, username)) if not self.connected(service): # the user pressed "cancel" when prompted to unlock their keyring. raise KeyringLocked("Failed to unlock the keyring!")