p">):</span>
            <span class="k">try</span><span class="p">:</span>
                <span class="k">if</span> <span class="n">optimize</span><span class="p">:</span>
                    <span class="n">obmol</span> <span class="o">=</span> <span class="n">BabelMolAdaptor</span><span class="o">.</span><span class="n">from_file</span><span class="p">(</span><span class="n">molecule</span><span class="p">,</span>
                                                      <span class="n">file_format</span><s