Skip to content

Commit 884869d

Browse files
Sam Minnéeluandy64
authored andcommitted
Improve error message when issue data structure is unexpected. (singer-io#55)
Fixes singer-io#54 by providing more diagnostics.
1 parent a295b71 commit 884869d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tap_github.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def authed_get(source, url, headers={}):
9898
def authed_get_all_pages(source, url, headers={}):
9999
while True:
100100
r = authed_get(source, url, headers)
101+
r.raise_for_status()
101102
yield r
102103
if 'next' in r.links:
103104
url = r.links['next']['url']

0 commit comments

Comments
 (0)