[misc] handle gnome-heyring DeniedError. Fix #3300.

This commit is contained in:
Julien Pivotto 2007-07-14 13:24:27 +00:00
parent 21269c175a
commit ecc54114f7
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ def get_storage():
storage = GnomePasswordStorage()
except gnomekeyring.NoKeyringDaemonError:
storage = SimplePasswordStorage()
except gnomekeyring.DeniedError:
storage = SimplePasswordStorage()
else:
storage = SimplePasswordStorage()
return storage