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: