From 0d3803594417ee9a035c47acd57ea778041b89fb Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 7 Apr 2021 11:30:08 +0200 Subject: [PATCH] Add constructor for keyring attribute _store_secure was used, so it should be created on construction --- cura/OAuth2/KeyringAttribute.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/OAuth2/KeyringAttribute.py b/cura/OAuth2/KeyringAttribute.py index 37781cd889..47d5d5eb26 100644 --- a/cura/OAuth2/KeyringAttribute.py +++ b/cura/OAuth2/KeyringAttribute.py @@ -22,7 +22,11 @@ if Platform.isWindows() and hasattr(sys, "frozen"): # Even if errors happen, we don't want this stored locally: DONT_EVER_STORE_LOCALLY = ["refresh_token"] + class KeyringAttribute: + def __init__(self) -> None: + self._store_secure = True + """ Descriptor for attributes that need to be stored in the keyring. With Fallback behaviour to the preference cfg file """