title: catching "socket.timeout The read operation timed out" in python
body: <p>I'm making calls to an API and am receiving the following timeout error: </p>
  
  <pre><code>socket.timeout The read operation timed out
  </code></pre>
  
  <p>which traces back from </p>
  
  <pre><code>File "/Users/someuser/anaconda/envs/python3/lib/python3.5/http/client.py", line 1198, in getresponse
      response.begin()
    File "/Users/someuser/anaconda/envs/python3/lib/python3.5/http/client.py", line 297, in begin
      version, status, reason = self._read_status()
    File "/Users/someuser/anaconda/envs/python3/lib/python3.5/http/client.py", line 258, in _read_status
      line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
    File "/Users/someuser/anaconda/envs/python3/lib/python3.5/socket.py", line 576, in readinto
      return self._sock.recv_into(b)
    File "/Users/someuser/anaconda/envs/python3/lib/python3.5/ssl.py", line 937, in recv_into
      return self.read(nbytes, buffer)
    File "/Users/someuser/anaconda/envs/python3/lib/python3.5/ssl.py", line 799, in read
      return self._sslobj.read(len, buffer)
    File "/Users/someuser/anaconda/envs/python3/lib/python3.5/ssl.py", line 583, in read
      v = self._sslobj.read(len, buffer)
  socket.timeout The read operation timed out
  </code></pre>
  
  <p>How can I catch this error from the top of the traceback?</p>