Occasionally repo.get_branch can raise an exception: github3.exceptions.NotFoundError: 404 Branch not found
Even when called on the repo's default branch!
This error handling is a bit overzealous, but I think we want the action to keep trucking along in the event of one repo having an issue.
Proposed Changes
Catch any exeption or error raised by the github3 while trying to get_active_date() and return None for that repo. It's not elegant, but it'll do.
Readiness Checklist
Author/Contributor
[x] If documentation is needed for this change, has that been included in this pull request
[x] run make lint and fix any issues that you have introduced
[x] run make test and ensure you have test coverage for the lines you are introducing
Reviewer
[x] Label as either bug, documentation, enhancement, infrastructure, or breaking
Pull Request
Occasionally repo.get_branch can raise an exception:
github3.exceptions.NotFoundError: 404 Branch not found
Even when called on the repo's default branch!This error handling is a bit overzealous, but I think we want the action to keep trucking along in the event of one repo having an issue.
Proposed Changes
Catch any exeption or error raised by the
github3
while trying toget_active_date()
and return None for that repo. It's not elegant, but it'll do.Readiness Checklist
Author/Contributor
make lint
and fix any issues that you have introducedmake test
and ensure you have test coverage for the lines you are introducingReviewer
bug
,documentation
,enhancement
,infrastructure
, orbreaking