Skip to content

#1725: add rescue for TooManyRequests/Unauthorized/ServerError and network errors#1827

Merged
yegor256 merged 1 commit into
zerocracy:masterfrom
VasilevNStas:1725-octokit-rescue-more
Jul 8, 2026
Merged

#1725: add rescue for TooManyRequests/Unauthorized/ServerError and network errors#1827
yegor256 merged 1 commit into
zerocracy:masterfrom
VasilevNStas:1725-octokit-rescue-more

Conversation

@VasilevNStas

Copy link
Copy Markdown
Contributor

Closes #1725

Adds rescue Octokit::TooManyRequests, Octokit::Unauthorized, Octokit::ServerError, Net::OpenTimeout, Net::ReadTimeout, SocketError, Errno::ECONNRESET, Errno::ETIMEDOUT to all Fbe.octo API calls that were only rescuing NotFound/Deprecated and Forbidden.

judges/code-was-reviewed/code-was-reviewed.rb — 4 call sites:

  • pull_request, pull_request_reviewsnext (skip the fact)
  • issue_comments, pull_request_review_comments — return 0

judges/pull-was-merged/pull-was-merged.rb — 3 call sites:

  • pull_request, issue, pull_request_reviews — all next issue

@VasilevNStas

Copy link
Copy Markdown
Contributor Author

@yegor256 plz review this

@yegor256 yegor256 merged commit 4f64cdb into zerocracy:master Jul 8, 2026
13 checks passed
@0crat

0crat commented Jul 8, 2026

Copy link
Copy Markdown

@VasilevNStas Thanks for the contribution! You've earned +24 points. Please, keep them coming. Your running score is +2176; don't forget to check your Zerocracy account too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

judges/code-was-reviewed.rb rescue chain covers only 3 Octokit exceptions

3 participants