AllenEllis / EverySingleMonth

Meme Generator for Every Single Month
https://everysinglemonth.org
MIT License
8 stars 6 forks source link

Corrupt data in autocomplete cache #17

Closed AllenEllis closed 4 years ago

AllenEllis commented 4 years ago

Similar to #15, but with the autocache data.

Some results from the DataUSA API are Cloudflare captcha screens. Be better about detecting these and failing with a "please try again later" error.

AllenEllis commented 4 years ago

This is now self-healing. If it detects invalid data in the cache, it removes the file so that the next user can try again fresh.