title: If exception retry in Python
body: <p>How could I go about doing something like this</p>
  
  <ol>
  <li>Try to do something.</li>
  <li>If it works, great, continue with normal flow.</li>
  <li>If it fails run a function and try again.</li>
  <li>If it once again fails throw an exception and stop code.</li>
  </ol>
  
  <p>I believe I would have to make use of <code>try</code> but I haven't quite come around yet to how to use it in this particular example.</p>