">archive_path</span><span class="p">)</span>
    <span class="k">if</span> <span class="ow">not</span> <span class="n">ext</span><span class="p">:</span>
        <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s1">'Archive path: </span><span class="si">{</span><span class="n">archive_path</span><span class="si">}</span><span class="s1"> does not have a valid file extension'</span><span class="p">)</span>
    <span class="n">ext</s