From ceca0c417a5a98c0cd0d2e2dd72ee25d66c62c06 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Wed, 23 Jun 2021 11:22:12 +0200 Subject: [PATCH] Catch the KeyringLocked also when setting the token in the keyring CURA-8332 --- cura/OAuth2/KeyringAttribute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/OAuth2/KeyringAttribute.py b/cura/OAuth2/KeyringAttribute.py index 1a522b4061..9bb6e3c267 100644 --- a/cura/OAuth2/KeyringAttribute.py +++ b/cura/OAuth2/KeyringAttribute.py @@ -52,7 +52,7 @@ class KeyringAttribute: if value is not None: try: keyring.set_password("cura", self._keyring_name, value) - except PasswordSetError: + except (PasswordSetError, KeyringLocked): self._store_secure = False if self._name not in DONT_EVER_STORE_LOCALLY: setattr(instance, self._name, value)