mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 01:08:59 +08: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
@ -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…
x
Reference in New Issue
Block a user