Python: Is it possible to have multiple exceptions statments for a try block?
<pre><code>try:
    case_no  = re.search("Case Number:&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class=\"Value\"&gt;([^&lt;]*?)&lt;",br.response().read()).group(1)
except:
       try:
           try:
               case_no  = re.search("Citation Number:&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class=\"Value\"&gt;([^&lt;]*?)&lt;",br.response().read()).group(1)
            except:
               case_no  = re.search("Citation Number:&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class=\"Value\"&gt;([^&lt;]*?)&lt;",br.response().read()).group(1)
        except:
              case_no  = "N/A"
</code></pre>

<p>As you can see the above code is quite clumsy. I want to know if there is any way I can do like this.</p>

<pre><code>try:
    XYZ
except:
    DOXYZ
except:
    DOXYZ
</code></pre>

<p>Basically I want to be able to use - "try X if exception then try Y if exception then try Z" without nesting too much statemtns.</p>
