fix unlocking
This commit is contained in:
parent
d1275b5076
commit
1772f77d30
1 changed files with 0 additions and 3 deletions
|
@ -230,7 +230,6 @@ class NextcloudHandler:
|
||||||
"message": "Encryption password obtained from keyring"
|
"message": "Encryption password obtained from keyring"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
collection.lock()
|
|
||||||
|
|
||||||
def _read_cache(self):
|
def _read_cache(self):
|
||||||
if os.path.exists(self.cache_filename):
|
if os.path.exists(self.cache_filename):
|
||||||
|
@ -274,7 +273,6 @@ class NextcloudHandler:
|
||||||
"last_update": -1,
|
"last_update": -1,
|
||||||
"cached_passwords": []
|
"cached_passwords": []
|
||||||
}
|
}
|
||||||
closing(secretstorage.dbus_init())
|
|
||||||
|
|
||||||
def _write_cache(self):
|
def _write_cache(self):
|
||||||
self.debug(
|
self.debug(
|
||||||
|
@ -287,7 +285,6 @@ class NextcloudHandler:
|
||||||
cipher_suite = Fernet(self.encryption_pass)
|
cipher_suite = Fernet(self.encryption_pass)
|
||||||
encrypted_cache = cipher_suite.encrypt(bytes(json.dumps(self.cache), 'utf-8'))
|
encrypted_cache = cipher_suite.encrypt(bytes(json.dumps(self.cache), 'utf-8'))
|
||||||
cache_file.write(encrypted_cache)
|
cache_file.write(encrypted_cache)
|
||||||
closing(secretstorage.dbus_init())
|
|
||||||
|
|
||||||
def _safer_obj(self, obj, fields=None):
|
def _safer_obj(self, obj, fields=None):
|
||||||
if fields is None:
|
if fields is None:
|
||||||
|
|
Loading…
Reference in a new issue