Skip to content

Commit

Permalink
Improve error message when issue data structure is unexpected. (#55)
Browse files Browse the repository at this point in the history
Fixes #54 by providing more diagnostics.
  • Loading branch information
Sam Minnée authored and luandy64 committed Feb 11, 2019
1 parent a295b71 commit 884869d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tap_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def authed_get(source, url, headers={}):
def authed_get_all_pages(source, url, headers={}):
while True:
r = authed_get(source, url, headers)
r.raise_for_status()
yield r
if 'next' in r.links:
url = r.links['next']['url']
Expand Down

0 comments on commit 884869d

Please sign in to comment.