title: If for Exception
body: <p>I am teaching myself python and I am still an amateur at remembering all the keywords. </p>
  
  <p>So; simple question, is there to way to use an <code>if</code> statement for an exception? </p>
  
  <p>I can make the <code>exception(NameError)</code> print something.  However, I want to use an <code>if</code> statement for <em>if the exception is executed, then do this</em>. </p>
  
  <p>Help would be greatly appreciated!</p>