kennethreitz/requests — Issue #259: Timeout exception not being thrown - NoneType instead
Author: joequery
Created: 2011-11-14 06:48:41+00:00
State: open

On OS X, I'm not getting the nice Timeout exception.

```python
>>> requests.get('http://github.com', timeout=0.001)
Traceback (most recent call last):
File "", line 1, in
File "requests/api.py", line 78, in get
return request('get', url, **kwargs)
File "requests/api.py", line 65, in request
prefetch=prefetch
File "requests/sessions.py", line 187, in request
r.send(prefetch=prefetch)
File "/Library/WebServer/Documents/lab/python/requests/requests/models.py", line 418, in send
timeout=self.timeout,
File "requests/packages/urllib3/connectionpool.py", line 342, in urlopen
self.timeout)
TypeError: float argument required, not NoneType
>>> requests.get('http://github.com', timeout=1.0)

```