You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slight grump. When I set a timeout (say requests.get('some url', timeout=1.0)), if the server on the other end doesn't reply in time, I get a urllib2.URLError thrown. Yay that it timed out right, but in order to catch the exception, I have to import urllib2 as well. Any chance there could be a requests exception thrown there instead?
The text was updated successfully, but these errors were encountered:
Slight grump. When I set a timeout (say
requests.get('some url', timeout=1.0)
), if the server on the other end doesn't reply in time, I get aurllib2.URLError
thrown. Yay that it timed out right, but in order to catch the exception, I have to importurllib2
as well. Any chance there could be arequests
exception thrown there instead?The text was updated successfully, but these errors were encountered: