core: fixed cache check on presence unavailable

This commit is contained in:
Goffi 2015-11-27 10:15:23 +01:00
commit a8cc331dd5

View file

@ -396,7 +396,7 @@ class SatPresenceProtocol(xmppim.PresenceClientProtocol):
# if the entity is not known yet in this session or is already unavailable, there is no need to send an unavailable signal
try:
presence = self.host.memory.getEntityDatum(entity, "presence", self.parent.profile)
except KeyError:
except (KeyError, exceptions.UnknownEntityError):
# the entity has not been seen yet in this session
pass
else: