diff --git a/src/memory/memory.py b/src/memory/memory.py index d08b549d..817809cd 100644 --- a/src/memory/memory.py +++ b/src/memory/memory.py @@ -146,7 +146,8 @@ class ProfileSessions(Sessions): ids = self._profileGetAllIds(profile) if len(ids) > 1: raise exceptions.InternalError('profileGetUnique has been used but more than one session has been found!') - return self._sessions[ids[0]][1] if len(ids) == 1 else None + return self.profileGet(ids[0], profile) if len(ids) == 1 else None + def profileDelUnique(self, profile): """Delete the unique session that is associated to the given profile.