diff options
author | Tomas Touceda <chiiph@leap.se> | 2013-04-25 11:22:21 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@leap.se> | 2013-05-07 14:01:11 -0300 |
commit | be45dc148a3586149f58944788f3e9bceea4f410 (patch) | |
tree | 0ec585aa5abdbbc3cb48991cf272b135d56dd642 /src/leap | |
parent | b1c2e24fb08f69a10a4d91a84ec0e31d91991190 (diff) |
Catch the case where there's no pubkey for a user
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/mx/couchdbhelper.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/mx/couchdbhelper.py b/src/leap/mx/couchdbhelper.py index 2bbca77..2f6b548 100644 --- a/src/leap/mx/couchdbhelper.py +++ b/src/leap/mx/couchdbhelper.py @@ -138,7 +138,10 @@ class ConnectedCouchDB(client.CouchDB): for row in result["rows"]: if row["key"] == alias: uuid = row["id"] - self._cache[uuid] = row["doc"]["public_key"] + try: + self._cache[uuid] = row["doc"]["public_key"] + except: + pass # no public key for this user return uuid return None |