correctly detect when GnomeKeyring is not installed
This commit is contained in:
parent
d5ee84a329
commit
c8f8a8b6d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue