diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-07-31 15:50:28 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-07-31 15:50:28 -0300 |
commit | d201ee8ff03905e008ce316bae81aa6cfe2caf58 (patch) | |
tree | d657ea7204500b0090fa4eeb1bf5f9dbdf6f1cff /src | |
parent | 429cc2681e74785e3e88b270730e246f3f9f3ce7 (diff) |
Do not default to SecretService keyring
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/bitmask/util/keyring_helpers.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/leap/bitmask/util/keyring_helpers.py b/src/leap/bitmask/util/keyring_helpers.py index 088e7b3d..2b729b65 100644 --- a/src/leap/bitmask/util/keyring_helpers.py +++ b/src/leap/bitmask/util/keyring_helpers.py @@ -50,11 +50,8 @@ def _get_keyring_with_fallback(): return None kr = keyring.get_keyring() if not canuse(kr): - try: - kr_klass = keyring.backends.SecretService - kr = kr_klass.Keyring() - except AttributeError: - logger.warning("Keyring cannot find SecretService Backend") + logger.debug("No usable keyring found") + return None logger.debug("Selected keyring: %s" % (kr.__class__,)) if not canuse(kr): logger.debug("Not using default keyring since it is obsolete") |