mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 13:21:10 -07:00
Log info instead of exception when keyring is denied on Mac
CURA-8332
This commit is contained in:
parent
c3782c9468
commit
7785142831
1 changed files with 3 additions and 3 deletions
|
|
@ -42,10 +42,10 @@ class KeyringAttribute:
|
|||
return getattr(instance, self._name)
|
||||
except Exception as e:
|
||||
self._store_secure = False
|
||||
exception_message = f"Something went wrong while trying to retrieve the password from the Keyring. Exception: {e}"
|
||||
if Platform.isOSX() and hasattr(sys, "frozen") and type(e) == KeychainDenied:
|
||||
exception_message = "Access to the keyring was denied."
|
||||
Logger.logException("w", exception_message)
|
||||
Logger.log("i", "Access to the keyring was denied.")
|
||||
else:
|
||||
Logger.logException("w", f"Something went wrong while trying to retrieve the password from the Keyring. Exception: {e}")
|
||||
return getattr(instance, self._name)
|
||||
else:
|
||||
return getattr(instance, self._name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue