title: Can't catch SystemExit exception Python
body: <p>I am trying to catch a <code>SystemExit</code> exception in the following fashion:</p>
  
  <pre><code>try:
      raise SystemExit
  except Exception as exception:
      print "success"
  </code></pre>
  
  <p>But, it doesn't work.</p>
  
  <p>It does work however when I change my code like that:</p>
  
  <pre><code>try:
      raise SystemExit
  except:
      print "success"
  </code></pre>
  
  <p>As far as I am aware, <code>except Exception as exception</code> should catch any exception. This is how it is described <a href="https://stackoverflow.com/a/4992124">here</a> as well. Why isn't that working for me here?</p>