From edf0ea9f4dd29348873078a91690a80902b8231c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 17 Oct 2006 21:48:10 +0000 Subject: [PATCH] [Gustavo] make gnomekeyring code more robust. --- src/common/passwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/passwords.py b/src/common/passwords.py index cc40820f8..15c7cf5ad 100644 --- a/src/common/passwords.py +++ b/src/common/passwords.py @@ -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: