diff --git a/keyring/backends/Windows.py b/keyring/backends/Windows.py index 33bed8b1..ae4a71b2 100644 --- a/keyring/backends/Windows.py +++ b/keyring/backends/Windows.py @@ -166,6 +166,6 @@ def get_credential(self, service, username): if not res: cred = self._get_password(service) res = cred if username is None or username == cred["UserName"] else None - if not res: - return None + if not res: + return None return SimpleCredential(res['UserName'], res.value)