[Gustavo] make gnomekeyring code more robust.

This commit is contained in:
Yann Leboulanger 2006-10-17 21:48:10 +00:00
parent e2430062f1
commit edf0ea9f4d
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ storage = None
def get_storage():
global storage
if storage is None: # None is only in first time get_storage is called
if USER_HAS_GNOMEKEYRING:
if USER_HAS_GNOMEKEYRING and gnomekeyring.is_available():
try:
storage = GnomePasswordStorage()
except gnomekeyring.NoKeyringDaemonError: