Skip to content

Commit

Permalink
Merge pull request singer-io#39 from AlexanderMann/fix/forbidden-resp…
Browse files Browse the repository at this point in the history
…onses

Fix: Status code 403 was hidden from users. Make failure obvious
  • Loading branch information
nick-mccoy authored Jan 2, 2019
2 parents d44313b + 82f0ab6 commit 47c8a95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tap_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def authed_get(source, url, headers={}):
resp = session.request(method='get', url=url)
if resp.status_code == 401:
raise AuthException(resp.text)
if resp.status_code == 403:
raise AuthException(resp.text)
if resp.status_code == 404:
raise NotFoundException(resp.text)

Expand Down

0 comments on commit 47c8a95

Please sign in to comment.