mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 02:53:15 +08:00
Import they KeychainDenied exception only on Mac
CURA-8332
This commit is contained in:
parent
c1618565ea
commit
951c656096
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user