diff options
author | Kali Kaneko <kali@leap.se> | 2016-05-13 09:18:40 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-05-13 09:18:40 -0400 |
commit | 8ca17fb6ea59861deddffc22322ccf05226f9f4e (patch) | |
tree | c77cad2bcb870700d5d9b1b8deff3f5c134ee56a /src/leap/mx | |
parent | f066bda4e472116d0ee9bd94305932865d8c3813 (diff) | |
parent | 016cfecf4538fa07555fc187676b3c2c078950e2 (diff) |
Merge tag '0.8.1' into debian/platform-0.8
Tag leap.mx version 0.8.1
Diffstat (limited to 'src/leap/mx')
-rw-r--r-- | src/leap/mx/couchdbhelper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mx/couchdbhelper.py b/src/leap/mx/couchdbhelper.py index e9cf4a4..f17466d 100644 --- a/src/leap/mx/couchdbhelper.py +++ b/src/leap/mx/couchdbhelper.py @@ -100,13 +100,14 @@ class ConnectedCouchDB(client.CouchDB): pubkey = None if result["rows"]: doc = result["rows"][0]["doc"] - if doc["enabled"]: + if "enabled" not in doc or doc["enabled"]: uuid = doc["user_id"] if "keys" in doc: pubkey = doc["keys"]["pgp"] return uuid, pubkey d.addCallback(_get_uuid_and_pubkey_cbk) + d.addErrback(lambda _: (None, None)) return d def getPubkey(self, uuid): |