mozilla / active-data-recipes

A repository of various activedata queries and recipes
Mozilla Public License 2.0
8 stars 24 forks source link

Raise `MissingDataError` in query.py if ActiveData doesn't return any data #41

Closed ahal closed 5 years ago

ahal commented 5 years ago

Previously we modified the try_usage.py recipe to raise MissingDataError if it detected that ActiveData returned empty results.

We should move this directly into query.py so that it'll happen for all of the queries regardless. This check should happen in the query_activedata function, just before the json data is returned.

Pokinawa commented 5 years ago

I am gonna have a look at this now

ahal commented 5 years ago

Thanks for your contribution! Don't forget to record it on outreachy.org if you haven't already.