emissions-api / sentinel5dl

Sentinel-5(P) Downloader
https://sentinel5dl.emissions-api.org
MIT License
12 stars 8 forks source link

Retry requests #19

Closed lkiesow closed 4 years ago

lkiesow commented 4 years ago

The ESA web API is not the most stable one and I have seen requests fail some times. It would be great if there would be a way for sentinel5dl to retry requests and downloads once if they fail before failing in general.

lkiesow commented 4 years ago

As a short tip, the __http_request(…) should throw an exception if a request fails and we could use Python's try-except to catch this exception and try again.

Some additional random thoughts: