Skip to content

Commit 3de0f8b

Browse files
Update codeframe/core/credentials.py
Co-authored-by: macroscopeapp[bot] <170038800+macroscopeapp[bot]@users.noreply.github.com>
1 parent 344e5a0 commit 3de0f8b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

codeframe/core/credentials.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,10 @@ def store(self, credential: Credential) -> None:
448448
return
449449
except Exception as e:
450450
logger.warning(f"Keyring storage failed, using encrypted file: {e}")
451+
try:
452+
keyring.delete_password(KEYRING_SERVICE_NAME, key)
453+
except Exception:
454+
pass
451455
self._keyring_available = False
452456

453457
# Fall back to encrypted file

0 commit comments

Comments
 (0)