Skip to content

Commit

Permalink
wip: assert on 403
Browse files Browse the repository at this point in the history
  • Loading branch information
jthodge committed Oct 17, 2023
1 parent f52eb41 commit 21f4924
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def build_database(repo_path):
break
elif response.status_code == 401:
assert False, "401 Unauthorized returned from GitHub API when rendering markdown"
elif response.status_code == 403:
print(path, response.status_code, response.headers)
assert False, "403 Forbidden returned from GitHub API when rendering markdown"
else:
print(response.status_code, response.headers)
print(" sleeping 60s")
Expand Down

0 comments on commit 21f4924

Please sign in to comment.