diff src/memory/disco.py @ 2533:8d82a62fa098

core (disco), plugin XEP-0115: client use + capabilities hash improvment: - modified a couple of method from memory to use client instead of profile - XEP-0115: don't use unique hash for all clients anymore, as disco can be different between clients/components, and even between clients (different identity for instance). hash is now generated per client on each new session.
author Goffi <goffi@goffi.org>
date Sat, 24 Mar 2018 10:44:37 +0100
parents 0046283a285d
children
line wrap: on
line diff
--- a/src/memory/disco.py	Wed Mar 21 19:13:22 2018 +0100
+++ b/src/memory/disco.py	Sat Mar 24 10:44:37 2018 +0100
@@ -284,6 +284,9 @@
         found_entities = set()
 
         def infosCb(infos, entity):
+            if entity is None:
+                log.warning(_(u'received an item without jid'))
+                return
             if identity is not None and identity not in infos.identities:
                 return
             if features.issubset(infos.features):