[Biopython-dev] Bio.Entrez batch download example with retries

Vincent Davis vincent at vincentdavis.net
Wed Nov 26 01:37:38 UTC 2014


On Tue, Nov 25, 2014 at 7:56 AM, Peter Cock <p.j.a.cock at googlemail.com>
wrote:
>
> Would anyone like to contribute an example script using Bio.Entrez
> with try/except handling of intermittent network errors like:
>
>  - HTTP Error 500: Internal Server Error
>  - HTTP Error 502: Bad Gateway


Are there other errors that would benefit
​​
from the pause
​/​
retry?
Like...
408: ('Request Timeout', 'Request timed out; try again later.')
503: ('Service Unavailable', 'The server cannot process the request due to
a high load')
504: ('Gateway Timeout', 'The gateway server did not receive a timely
response')

Vincent Davis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython-dev/attachments/20141125/89405050/attachment.html>


More information about the Biopython-dev mailing list