diff --git a/frontends/src/quick_frontend/quick_contact_list.py b/frontends/src/quick_frontend/quick_contact_list.py index 7c7e27cd..1f5a7942 100644 --- a/frontends/src/quick_frontend/quick_contact_list.py +++ b/frontends/src/quick_frontend/quick_contact_list.py @@ -395,7 +395,11 @@ class ProfileContactList(object): cache_attr = cache[C.CONTACT_RESOURCES].setdefault(entity.resource, {}) if entity.resource else cache for attribute, value in attributes.iteritems(): if value is None: - cache_attr[attribute].pop(value, None) + # XXX: pyjamas hack: we need to use pop instead of del + try: + cache_attr[attribute].pop(value) + except KeyError: + pass else: cache_attr[attribute] = value