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 <>
parent 52cb997e
......@@ -73,7 +73,7 @@ class Authenticator(object):
# This gives us only the password
password = self.Secret.password_lookup_sync(
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))
Supports Markdown
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