# HG changeset patch # User Goffi # Date 1467200555 -7200 # Node ID 8c4087fd034ae7d773929e0780fd9e567715625f # Parent e6b51b7ff31fc1a8756e9fd347285a0d88e9350f quick_frontend: allow presence of entities without resource diff -r e6b51b7ff31f -r 8c4087fd034a frontends/src/quick_frontend/quick_contact_list.py --- a/frontends/src/quick_frontend/quick_contact_list.py Tue Jun 28 18:37:29 2016 +0200 +++ b/frontends/src/quick_frontend/quick_contact_list.py Wed Jun 29 13:42:35 2016 +0200 @@ -471,7 +471,8 @@ if not cache[C.CONTACT_RESOURCES]: cache[C.CONTACT_MAIN_RESOURCE] = None else: - assert entity.resource + if not entity.resource: + log.warning(_(u"received presence from entity without resource: {}".format(entity))) resources_data = cache[C.CONTACT_RESOURCES] resource_data = resources_data.setdefault(entity.resource, {}) resource_data[C.PRESENCE_SHOW] = show