<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I submitted a pull request, let me know if this is what you had in mind.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div>Vincent Davis</div><div>720-301-3003<span></span><span></span></div></div></div>
<br><div class="gmail_quote">On Wed, Nov 26, 2014 at 3:11 AM, Peter Cock <span dir="ltr"><<a href="mailto:p.j.a.cock@googlemail.com" target="_blank">p.j.a.cock@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Nov 26, 2014 at 1:37 AM, Vincent Davis <<a href="mailto:vincent@vincentdavis.net">vincent@vincentdavis.net</a>> wrote:<br>
><br>
> On Tue, Nov 25, 2014 at 7:56 AM, Peter Cock <<a href="mailto:p.j.a.cock@googlemail.com">p.j.a.cock@googlemail.com</a>><br>
> wrote:<br>
>><br>
>> Would anyone like to contribute an example script using Bio.Entrez<br>
>> with try/except handling of intermittent network errors like:<br>
>><br>
>> - HTTP Error 500: Internal Server Error<br>
>> - HTTP Error 502: Bad Gateway<br>
><br>
><br>
> Are there other errors that would benefit<br>
> from the pause<br>
> /<br>
> retry?<br>
> Like...<br>
> 408: ('Request Timeout', 'Request timed out; try again later.')<br>
> 503: ('Service Unavailable', 'The server cannot process the request due to a<br>
> high load')<br>
> 504: ('Gateway Timeout', 'The gateway server did not receive a timely<br>
> response')<br>
><br>
> Vincent Davis<br>
<br>
</div></div>I would say any 5xx error was worth a retry.<br>
<br>
On the other hand, 4xx errors are probably our problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
Peter<br>
</font></span></blockquote></div><br></div>