How to wrap socket.error in requests ConnectionError when reading response content?