diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-11-10 01:57:01 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-11-10 01:57:01 +0000 |
commit | 65f4b091251cbdcd351180fba96f9dc04c0ec9d3 (patch) | |
tree | b17c6b5e2834b3a3abc44384f896e7e607af7cfe /pykolab | |
parent | 7983e3534d386d6603cec441340151f94c765a86 (diff) | |
download | pykolab-65f4b091251cbdcd351180fba96f9dc04c0ec9d3.tar.gz |
Make sure the result_attribute dict key exists
Diffstat (limited to 'pykolab')
-rw-r--r-- | pykolab/auth/ldap/cache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/cache.py b/pykolab/auth/ldap/cache.py index 8bdeebe..503c3c5 100644 --- a/pykolab/auth/ldap/cache.py +++ b/pykolab/auth/ldap/cache.py @@ -107,6 +107,10 @@ def get_entry(domain, entry): if _entry == None: log.debug(_("Inserting cache entry %r") % (entry['id']), level=8) + + if not entry.has_key(result_attribute): + entry[result_attribute] = '' + db.add( Entry( entry['id'], |