changeset 1258:c585df65828a

memory: fixes issue in a test
author souliane <souliane@mailoo.org>
date Wed, 22 Oct 2014 18:58:29 +0200
parents 83ed877541e3
children 633fcd13a7dc
files src/memory/memory.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: