core: more explicit UnknownEntityError

This commit is contained in:
Goffi 2013-06-20 12:11:54 +02:00
commit 5f6289c655

View file

@ -789,7 +789,7 @@ class Memory(object):
if not profile in self.entitiesCache:
raise exceptions.ProfileNotInCacheError
if not entity_jid.userhost() in self.entitiesCache[profile]:
raise exceptions.UnknownEntityError
raise exceptions.UnknownEntityError(entity_jid.userhost())
entity_data = self.entitiesCache[profile][entity_jid.userhost()]
if not keys_list:
return entity_data