correctly detect when GnomeKeyring is not installed

This commit is contained in:
Yann Leboulanger 2013-02-20 20:13:08 +01:00
parent d5ee84a329
commit c8f8a8b6d1
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ def get_storage():
gir = __import__('gi.repository', globals(), locals(),
['GnomeKeyring'], 0)
GnomeKeyring = gir.GnomeKeyring
except ImportError:
except (ImportError, AttributeError):
pass
else:
global USER_HAS_GNOMEKEYRING