Requests
Requests copied to clipboard
Retry option?
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.
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.