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(),
|
gir = __import__('gi.repository', globals(), locals(),
|
||||||
['GnomeKeyring'], 0)
|
['GnomeKeyring'], 0)
|
||||||
GnomeKeyring = gir.GnomeKeyring
|
GnomeKeyring = gir.GnomeKeyring
|
||||||
except ImportError:
|
except (ImportError, AttributeError):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
global USER_HAS_GNOMEKEYRING
|
global USER_HAS_GNOMEKEYRING
|
||||||
|
|
Loading…
Reference in New Issue