# HG changeset patch # User souliane # Date 1413997109 -7200 # Node ID c585df65828ab9d10497ff87c5c01410d942ca77 # Parent 83ed877541e3834dcbde7544363d8de5013e1f5d memory: fixes issue in a test diff -r 83ed877541e3 -r c585df65828a src/memory/memory.py --- a/src/memory/memory.py Wed Oct 22 14:38:20 2014 +0200 +++ b/src/memory/memory.py Wed Oct 22 18:58:29 2014 +0200 @@ -495,7 +495,7 @@ if not profile: raise exceptions.ProfileUnknownError(_('Trying to get entity data for a non-existant profile')) entities_data = self._getEntitiesData(entity_jid, profile) - if entity_jid.resource and entity_jid != C.ENTITY_ALL: + if entity_jid != C.ENTITY_ALL and entity_jid.resource: self._updateEntityResources(entity_jid, profile) for jid_ in entities_data: