title: Reload script within loop if timeout python
body: <p>I have a script visiting different websites. Sometimes I will time out and the Traceback will throw the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python27\visitor.py", line 52, in &lt;module&gt;
      wait.until(EC.presence_of_element_located((By.Selector, "theSelector")))
    File "C:\Python27\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
      raise TimeoutException(message, screen, stacktrace)
  TimeoutException: Message: 
  </code></pre>
  
  <p>How can I identify this error and just tell the script to start from the beginning if this happens? I'm looping through different aspects and this happens within the loop. So I just want to continue from where it crashed. Basically reloading the webpage and executing the commands. </p>