title: Python requests - Exception Type: ConnectionError - try: except does not work
body: <p>I am using a webservice to retrieve some data but sometimes the url is not working and my site is not loading. Do you know how I can handle the following exception so there is no problem with the site in case the webservice is not working?</p>
  
  <pre><code>Django Version: 1.3.1 
  Exception Type: ConnectionError
  Exception Value: 
  HTTPConnectionPool(host='test.com', port=8580): Max retries exceeded with url:
  </code></pre>
  
  <p>I used </p>
  
  <pre><code>try:
     r = requests.get("http://test.com", timeout=0.001)
  except requests.exceptions.RequestException as e:    # This is the correct syntax
     print e
     sys.exit(1)
  </code></pre>
  
  <p>but nothing happens</p>