Skip to content

Commit

Permalink
Should fail loudly if the feed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danpalmer committed Jan 4, 2018
1 parent 606b673 commit 473539d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routemaster/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def prefetch(self, label: str):
)

response = requests.get(url)
response.raise_for_status()
self.data = response.json()

def lookup(self, path):
Expand Down

0 comments on commit 473539d

Please sign in to comment.