technology - machine learning - datascience - computer vision - programming
Search

Best practice with retries with requests – Peterbe.com

I have a lot of code that does response = requests.get(…) in various Python projects. This is nice and simple but the problem is that networks are unreliable. So it’s a good idea to wrap these network calls with retries. Here’s one such implementation.

Source : Best practice with retries with requests – Peterbe.com