title: Exception Handling Request through SSLError
body: <p>This is my function for checking link. But it throws an error when the link is fake. For example, it works for twitter.com but not for twitt.com.</p>
  
  <pre><code>class Quality_Check:
      def check_broken_link(self,data):
          url= requests.head(data)
  
          try:
              if url.status_code==200 or url.status_code==302 or url.status_code==301:
                  return True
          except requests.exceptions.SSLError as e:
              return False
  
  qc=Quality_Check()
  print(qc.check_broken_link('https://twitte.com'))
  </code></pre>
  
  <p>When i try to handle the exception by this method it shows following error:</p>
  
  <pre><code>Traceback (most recent call last):
        ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
  </code></pre>
  
  <p>During handling of the above exception, another exception occurred:</p>
  
  <pre><code>raise MaxRetryError(_pool, url, error or ResponseError(cause))
  urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='twitte.com', 
  port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, 
  '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),))
  </code></pre>
  
  <p>and another one appeared too</p>
  
  <pre><code>requests.exceptions.SSLError: HTTPSConnectionPool(host='twitte.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),))
  </code></pre>