ArtesiaWater / hydropandas

Module for loading observation data into custom DataFrames
https://hydropandas.readthedocs.io
MIT License
56 stars 11 forks source link

improve error handling, fix for #232 #233

Closed OnnoEbbens closed 1 month ago

OnnoEbbens commented 1 month ago

I added some error handling that waits a second before trying again if a 429 is encountered.

OnnoEbbens commented 1 month ago

Thanks for the suggestion Martin that is a better way to handle retries. Pretty hard to find some good documentation on this, in the end this website helped me to understand the retry logic: https://oxylabs.io/blog/python-requests-retry

OnnoEbbens commented 1 month ago

The KNMI notebook raises an error in the test and the documentation. Locally I have no issues. I will try to merge and see if this error persists