diff options
author | Tomas Touceda <chiiph@leap.se> | 2013-04-25 11:22:21 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@leap.se> | 2013-04-25 11:22:21 -0300 |
commit | 816ebc7c7e9606f892e1fc26dbac70874fb0d3da (patch) | |
tree | 59f4b13ce9d1df19b3c28e7b24cb7b9519c79eb4 /src/leap/mx | |
parent | f56d043854cb4281c81e2ee6a6b99ff9d03ad9d6 (diff) |
Catch the case where there's no pubkey for a user
Diffstat (limited to 'src/leap/mx')
-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 |