From 0da2c0228f678eb172758b72e637cfc2ac00b318 Mon Sep 17 00:00:00 2001 From: souliane Date: Wed, 22 Oct 2014 18:58:29 +0200 Subject: [PATCH] memory: fixes issue in a test --- src/memory/memory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory/memory.py b/src/memory/memory.py index 516452c1..0f6794f6 100644 --- a/src/memory/memory.py +++ b/src/memory/memory.py @@ -495,7 +495,7 @@ class Memory(object): 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: