Verified Commit 7a269069 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Catch KeyError since sometimes 'user' is not there (?!)


Signed-off-by: Andrej Shadura's avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 52cb997e
......@@ -73,7 +73,7 @@ class Authenticator(object):
# This gives us only the password
password = self.Secret.password_lookup_sync(
self.SECRET_SCHEMA_COMPAT_NETWORK, attrs, None)
except GLib.Error as e:
except (GLib.Error, KeyError) as e:
# Couldn't contact daemon, or other errors
print("Unable to contact keyring: {0}".format(e.streerror))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment