opencivicdata / python-legistar-scraper

Scrapes municipal data from Legistar websites
BSD 3-Clause "New" or "Revised" License
42 stars 28 forks source link

we want to retry transient problems with head requests #84

Closed fgregg closed 5 years ago

fgregg commented 5 years ago

For reasons that are obscure, and which may not be existent, at some point we stopped using the scrapers class's own head method for getting the bill detail url, and instead used the methods from the requests library.

A consequence of this is that if there was an error when we made the head request, we wouldn't retry it. But, we would like to retry it. So we are reverting.

I've tested this locally a bunch of times, but was not able to trigger an error to retry.