mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Don't crash if the keyring password cannot be decoded
Fixes Sentry issue CURA-2S0
This commit is contained in:
parent
0e26b9125a
commit
7c8153eede
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ class KeyringAttribute:
|
|||
self._store_secure = False
|
||||
Logger.log("i", "Access to the keyring was denied.")
|
||||
return getattr(instance, self._name)
|
||||
except UnicodeDecodeError:
|
||||
self._store_secure = False
|
||||
Logger.log("w", "The password retrieved from the keyring cannot be used because it contains characters that cannot be decoded.")
|
||||
return getattr(instance, self._name)
|
||||
else:
|
||||
return getattr(instance, self._name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue