quick frontend (contact list): fixed cached key removal
This commit is contained in:
parent
e4000b4f3b
commit
450c9c0a15
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue