def modify_session_unlocking(self, session_id, sess_obj):
        lock, sessions = self._get_lock_and_sessions(session_id)
        session_locks  = self._get_session_lock(session_id)

        with lock:
            try:
                self.modify_session(session_id, sess_obj)
            finally:
                try:
                    session_locks[session_id].release()
                except __HOLE__:
                    # It has been deleted while modifying. Do nothing.
                    pass
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/sessions/memory.py/SessionMemoryGateway.modify_session_unlocking