ject has no attribute &#39;</span><span class="si">{</span><span class="n">w</span><span class="si">}</span><span class="s2">&#39;&quot;</span>
                    <span class="p">)</span>

            <span class="k">if</span> <span class="n">b</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
                <span class="k">if</span> <span class="n">rhasattr</span><span class="p">(</span><span class="n">policy</span><span class="p">,</span> 