teList</span><span class="p">,</span> <span class="n">customStateList</span><span class="o">=</span><span class="n">customStateList</span>
            <span class="p">)</span>
            <span class="c1"># print(&quot;\t\tAfter calling buildState&quot;)</span>
        <span class="k">except</span> <span class="n">StateOutOfBounds</span> <span class="k">as</span> <span class="n">stOBErr</span><span class="p">:</span>
            <span class="k">raise</span> <span class="n">stOBErr</span>
        <span class