Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Add check to handle 422 status code so it does not loop forever
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomassi committed Jun 20, 2018
1 parent dfd2e2a commit 590d32c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bugswarm/common/github_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def get(self, url: str):
elif response.status_code == 451: # Repository access blocked.
log.error('Repository access blocked:', url)
return None, None
elif response.status_code == 422:
return None, None
else:
log.error('Request for url failed:', url)
log.error('Exception:', e)
Expand Down

0 comments on commit 590d32c

Please sign in to comment.