title: Python print last traceback only?
body: <p>Consider the following code and traceback:</p>
  
  <pre><code>&gt;&gt;&gt; try:
  ...  raise KeyboardInterrupt
  ... except KeyboardInterrupt:
  ...  raise Exception
  ... 
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 2, in &lt;module&gt;
  KeyboardInterrupt
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 4, in &lt;module&gt;
  Exception
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>I'd like to print only the most recent traceback (the one in which <code>Exception</code> was raised).<br>
  How can this be achieved?</p>
  
  <hr>
  
  <p>From the above example, I'd like to print the following, as if <code>raise Exception</code> had been called outside the <code>except</code> clause.</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 4, in &lt;module&gt;
  Exception
  </code></pre>