kinverarity1 / python-sa-gwdata

Python package for the Groundwater Data section of the DEW WaterConnect website
https://python-sa-gwdata.readthedocs.io/en/latest/index.html
MIT License
3 stars 0 forks source link

Retry on ConnectionError #30

Closed kinverarity1 closed 1 year ago

kinverarity1 commented 1 year ago

Sometimes waterconnect.sa.gov.au drops the connection. For at least the first occasion, this commit waits 0.8 second and then retries. If it gets raised again, we propagate the exception and fail - the user will have to decide whether to try again or not.