diff --git a/keyring/backends/kwallet.py b/keyring/backends/kwallet.py index 6326971a..12775706 100644 --- a/keyring/backends/kwallet.py +++ b/keyring/backends/kwallet.py @@ -123,7 +123,8 @@ 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 super().get_credential(service, username) + if not self.connected(service): # the user pressed "cancel" when prompted to unlock their keyring. raise KeyringLocked("Failed to unlock the keyring!") @@ -134,6 +135,8 @@ def get_credential(self, service, username): ) return SimpleCredential(str(username), str(password)) + return None + def set_password(self, service, username, password): """Set password for the username of the service""" if not self.connected(service):