Commits

Maciej Sitarz committed abcb634

Corrected delete exception message

Comments (0)

Files changed (3)

keyring/backends/Gnome.py

                 gnomekeyring.item_delete_sync(current['keyring'],
                                               current['item_id'])
         except gnomekeyring.NoMatchError:
-            raise PasswordDeleteError("can't found the password")
+            raise PasswordDeleteError("Password not found")
         except gnomekeyring.CancelledError:
             raise PasswordDeleteError("cancelled by user")
 

keyring/backends/file.py

         if os.path.exists(self.file_path):
             config.read(self.file_path)
         if not config.remove_section(service):
-            raise PasswordDeleteError("can't found the password")
+            raise PasswordDeleteError("Password not found")
         # update the file
         config_file = open(self.file_path, 'w')
         config.write(config_file)

keyring/backends/kwallet.py

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