handle the case when user press cancell at gnome keyring password dialog when saving a password. Fixes #7305
This commit is contained in:
parent
5add9ee985
commit
2c389640a7
1 changed files with 4 additions and 4 deletions
|
@ -126,9 +126,9 @@ class GnomePasswordStorage(PasswordStorage):
|
|||
password = str()
|
||||
try:
|
||||
auth_token = gnomekeyring.item_create_sync(
|
||||
self.keyring, gnomekeyring.ITEM_NETWORK_PASSWORD,
|
||||
display_name, attributes1, password, update)
|
||||
except gnomekeyring.DeniedError:
|
||||
self.keyring, gnomekeyring.ITEM_NETWORK_PASSWORD, display_name,
|
||||
attributes1, password, update)
|
||||
except (gnomekeyring.DeniedError, gnomekeyring.CancelledError):
|
||||
set_storage(SimplePasswordStorage())
|
||||
storage.save_password(account_name, password)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue