Merge pull request #9538 from Ultimaker/CURA-7180_frozen_mac_keyring_fix

[CURA-7180] Explicitly give keyring-backend on Mac too.
This commit is contained in:
Konstantinos Karmas 2021-04-09 17:17:36 +02:00 committed by GitHub
commit bd96978d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,9 @@ if Platform.isWindows() and hasattr(sys, "frozen"):
import win32timezone
from keyring.backends.Windows import WinVaultKeyring
keyring.set_keyring(WinVaultKeyring())
if Platform.isOSX() and hasattr(sys, "frozen"):
from keyring.backends.macOS import Keyring
keyring.set_keyring(Keyring())
# Even if errors happen, we don't want this stored locally:
DONT_EVER_STORE_LOCALLY: List[str] = ["refresh_token"]