title: How to catch ConnectionError max retriees via try except
body: <p>I have a problem with <code>ConnectionError</code> max retries using <code>try</code>,<code>except</code>. I am using <code>BeautifulSoup</code> and <code>requests</code>.
  If my script working for about 10 hours, the script does nothing!
  I am using try except and time.sleep(1) to catch this error.</p>
  
  <pre><code>for i, link in enumerate(links):
      sleep(1)
      try:
          req = requests.get(link, verify=False)
      except requests.exceptions.ConnectionError:
          logger.debug("Connection error! " + link)
          continue
      if req.status_code != 404:
          do_something()
      else:
          logger.debug("Website not exist! " + link)
          continue
  </code></pre>