def modify_session(self,sess_id, sess_obj):
        if self._serialize:
            sess_obj = self._serializer.serialize(sess_obj)
        lock, sessions = self._get_lock_and_sessions(sess_id)
        with lock:
            if not sess_id in sessions:
                raise SessionErrors.SessionNotFoundError(
                            "Session not found: " + sess_id
                        )
            sessions[sess_id] = SessionObj(sess_obj)
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/sessions/memory.py/SessionMemoryGateway.modify_session/original