core: more explicit UnknownEntityError
This commit is contained in:
parent
9bec52525b
commit
5f6289c655
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue