datamade / django-councilmatic

:heartpulse: Django app providing core functions for *.councilmatic.org
http://councilmatic.org
MIT License
26 stars 16 forks source link

Timeout #181

Closed reginafcompton closed 6 years ago

reginafcompton commented 6 years ago

This PR relates to the first bullet in this Chicago issue: https://github.com/datamade/chi-councilmatic/issues/231

It also makes better use of the _get_response function by adding an option to throw a warning or an error, if a response is NOT ok.

evz commented 6 years ago

This looks pretty great. I know replacing session.get with the _get_response was a bit of a hassle but it'll make it a little simpler to only have one thing that is calling out to the internet that way.