Yelp / threat_intel

Threat Intelligence APIs
MIT License
274 stars 56 forks source link

Retry only unsuccessful requests #56

Closed jjsendor closed 8 years ago

jjsendor commented 8 years ago

Sometimes grequests.map() returns responses which are either unsuccessful or simply None. So far _wait_for_response() was retrying the whole request batch each time there was an unsuccessful response for any of the requests. After this change only the requests that were unsuccessful will be called again in the next call to grequests.map().

Also some other aspects of handling the responses was changed:

jjsendor commented 8 years ago

Closes #55.