Maciej Sitarz committed 07c1942

Use local wallet variable and open kwallet before using it.

kwallet could be None when using delete_password() as first usage of keyring.

  • Participants
  • Parent commits 9b926d4
  • Branches fix_kwallet_delete

Comments (0)

Files changed (1)

File keyring/backends/

         """Delete the password for the username of the service.
         key = username + '@' + service
-        if kwallet.keyDoesNotExist(kwallet.walletName(), 'Python', key):
+        wallet = open_kwallet()
+        if wallet.keyDoesNotExist(wallet.walletName(), 'Python', key):
             raise PasswordDeleteError("can't found the password")
-        kwallet.removeEntry(key)
+        wallet.removeEntry(key)