Skip to content

Commit

Permalink
Fix: Status code 403 was hidden from users. Make failure obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMann committed Dec 18, 2018
1 parent d44313b commit 82f0ab6
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 82f0ab6

Please sign in to comment.