From 1772f77d30654e66675a9ec799de80c54c22d32c Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sun, 17 Nov 2024 10:57:46 +0200 Subject: [PATCH] fix unlocking --- nc_password_client/nc_password_client.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/nc_password_client/nc_password_client.py b/nc_password_client/nc_password_client.py index dc7026a..3fa2e94 100755 --- a/nc_password_client/nc_password_client.py +++ b/nc_password_client/nc_password_client.py @@ -230,7 +230,6 @@ class NextcloudHandler: "message": "Encryption password obtained from keyring" } ) - collection.lock() def _read_cache(self): if os.path.exists(self.cache_filename): @@ -274,7 +273,6 @@ class NextcloudHandler: "last_update": -1, "cached_passwords": [] } - closing(secretstorage.dbus_init()) def _write_cache(self): self.debug( @@ -287,7 +285,6 @@ class NextcloudHandler: cipher_suite = Fernet(self.encryption_pass) encrypted_cache = cipher_suite.encrypt(bytes(json.dumps(self.cache), 'utf-8')) cache_file.write(encrypted_cache) - closing(secretstorage.dbus_init()) def _safer_obj(self, obj, fields=None): if fields is None: