Requests icon indicating copy to clipboard operation
Requests copied to clipboard

Retry option?

Open pyrsmk opened this issue 9 years ago • 1 comments

Hi!

First, thanks a lot for your library! I really love how Requests work!

I saw that there's a timeout option (even if I couldn't find it in the docs). But what about a retry option? Because, when the remote host is not reachable for any reason, the request throws an exception and the page (or application) shows a nasty error. In my case, I don't want to show any error and the request must always run.

pyrsmk avatar Jun 27 '16 16:06 pyrsmk

I use a wrapper that does this, in case that's helpful to anyone else in the mean time.

It's for WordPress, rather than Requests directly, but could be easily modified.

iandunn avatar Nov 19 '16 21:11 iandunn