mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:25:51 +08:00
Fix mypy complaint
The `Keyring` is already imported from MacOS, so it's best to rename the fail on for Linux. CURA-8490
This commit is contained in:
parent
b1dc38f126
commit
c5a956068f
@ -23,8 +23,8 @@ if Platform.isOSX() and hasattr(sys, "frozen"):
|
|||||||
keyring.set_keyring(Keyring())
|
keyring.set_keyring(Keyring())
|
||||||
if Platform.isLinux() and hasattr(sys, "frozen"):
|
if Platform.isLinux() and hasattr(sys, "frozen"):
|
||||||
# We do not support the keyring on Linux, so make sure no Keyring backend is loaded, even if there is a system one.
|
# We do not support the keyring on Linux, so make sure no Keyring backend is loaded, even if there is a system one.
|
||||||
from keyring.backends.fail import Keyring
|
from keyring.backends.fail import Keyring as NoKeyringBackend
|
||||||
keyring.set_keyring(Keyring())
|
keyring.set_keyring(NoKeyringBackend())
|
||||||
|
|
||||||
# Even if errors happen, we don't want this stored locally:
|
# Even if errors happen, we don't want this stored locally:
|
||||||
DONT_EVER_STORE_LOCALLY: List[str] = ["refresh_token"]
|
DONT_EVER_STORE_LOCALLY: List[str] = ["refresh_token"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user