     <span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="n">SECS_PER_ATTEMPT</span><span class="p">)</span>
        <span class="k">if</span> <span class="n">num_attempts</span> <span class="o">==</span> <span class="n">MAX_ATTEMPTS</span><span class="p">:</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s2