From 951c656096e4bc94d3fdc892b432d6b65c2715f0 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Mon, 21 Jun 2021 10:55:22 +0200 Subject: [PATCH] Import they KeychainDenied exception only on Mac 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 1fcd8a7f66..8ade00bc03 100644 --- a/cura/OAuth2/KeyringAttribute.py +++ b/cura/OAuth2/KeyringAttribute.py @@ -4,7 +4,6 @@ from typing import Type, TYPE_CHECKING, Optional, List import keyring from keyring.backend import KeyringBackend -from keyring.backends.macOS.api import KeychainDenied from keyring.errors import NoKeyringError, PasswordSetError from UM.Logger import Logger @@ -21,6 +20,7 @@ if Platform.isWindows() and hasattr(sys, "frozen"): keyring.set_keyring(WinVaultKeyring()) if Platform.isOSX() and hasattr(sys, "frozen"): from keyring.backends.macOS import Keyring + from keyring.backends.macOS.api import KeychainDenied keyring.set_keyring(Keyring()) # Even if errors happen, we don't want this stored locally: