spyoungtech / grequests

Requests + Gevent = <3
https://pypi.python.org/pypi/grequests
BSD 2-Clause "Simplified" License
4.49k stars 331 forks source link

Timeout exception handling #49

Closed asciimoo closed 10 years ago

asciimoo commented 10 years ago

Catching timeout exceptions and handling in map()/imap() functions with the exception_handler parameter which is None or a callback function. Added some tests to demonstrate the usage

ckcollab commented 10 years ago

This is awesome, I hope this gets merged! I am writing a little URL checker and I am having a hard time capturing exceptions on bad requests.

asciimoo commented 10 years ago

thanks, i hope too =)

ispmarin commented 10 years ago

Waiting for it too, would be very helpful.

newmaniese commented 10 years ago

Thanks for the tests! Great PR!