Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry option? #222

Open
pyrsmk opened this issue Jun 27, 2016 · 1 comment
Open

Retry option? #222

pyrsmk opened this issue Jun 27, 2016 · 1 comment

Comments

@pyrsmk
Copy link

pyrsmk commented Jun 27, 2016

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.

@iandunn
Copy link
Member

iandunn commented Nov 19, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants