From 77851428317d3367ef55ba16573304f35cf712c3 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Mon, 21 Jun 2021 16:14:48 +0200 Subject: [PATCH] Log info instead of exception when keyring is denied on Mac CURA-8332 --- cura/OAuth2/KeyringAttribute.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/OAuth2/KeyringAttribute.py b/cura/OAuth2/KeyringAttribute.py index 3051e40eb8..4821f94505 100644 --- a/cura/OAuth2/KeyringAttribute.py +++ b/cura/OAuth2/KeyringAttribute.py @@ -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)