# HG changeset patch # User Goffi # Date 1371723114 -7200 # Node ID 64db6758d223852d5ef2c5a01ecfac853e9002e5 # Parent 1de01a2154e22e1ea6a8b848b0f0e0a47424f8a9 core: more explicit UnknownEntityError diff -r 1de01a2154e2 -r 64db6758d223 src/memory/memory.py --- a/src/memory/memory.py Mon Jun 17 13:55:11 2013 +0200 +++ b/src/memory/memory.py Thu Jun 20 12:11:54 2013 +0200 @@ -789,7 +789,7 @@ 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