Skip to content

Commit

Permalink
deploy: 5b6f178
Browse files Browse the repository at this point in the history
  • Loading branch information
idocx committed Oct 7, 2024
1 parent 5df7a63 commit 4f0264a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,15 @@ <h1>Source code for alab_management.resource_manager.resource_requester</h1><div

<span class="c1"># considering concurrent.futures.TimeoutError and TimeoutError becomes the same</span>
<span class="c1"># from Python 3.11. We should determine the base class of this exception.</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">concurrent</span><span class="o">.</span><span class="n">futures</span><span class="o">.</span><span class="n">TimeoutError</span><span class="p">,</span> <span class="ne">TimeoutError</span><span class="p">):</span>
<span class="k">if</span> <span class="n">concurrent</span><span class="o">.</span><span class="n">futures</span><span class="o">.</span><span class="n">TimeoutError</span> <span class="ow">is</span> <span class="ne">TimeoutError</span><span class="p">:</span>
<span class="n">CombinedTimeoutError</span> <span class="o">=</span> <span class="ne">TimeoutError</span>
<span class="k">else</span><span class="p">:</span>

<div class="viewcode-block" id="CombinedTimeoutError">
<a class="viewcode-back" href="../../../alab_management.resource_manager.resource_requester.html#alab_management.resource_manager.resource_requester.CombinedTimeoutError">[docs]</a>
<span class="k">class</span> <span class="nc">CombinedTimeoutError</span><span class="p">(</span><span class="ne">TimeoutError</span><span class="p">,</span> <span class="n">concurrent</span><span class="o">.</span><span class="n">futures</span><span class="o">.</span><span class="n">TimeoutError</span><span class="p">):</span>
<span class="k">class</span> <span class="nc">CombinedTimeoutError</span><span class="p">(</span>
<span class="ne">TimeoutError</span><span class="p">,</span> <span class="n">concurrent</span><span class="o">.</span><span class="n">futures</span><span class="o">.</span><span class="n">TimeoutError</span>
<span class="p">):</span> <span class="c1"># pylint: disable=duplicate-bases</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Combined TimeoutError.</span>

Expand Down

0 comments on commit 4f0264a

Please sign in to comment.