Merge pull request #17182 from boblail/lail/warn+continue-when-unable-to-find-related-issues

This commit is contained in:
Carlo Cabrera 2024-04-30 07:15:26 +01:00 committed by GitHub
commit 7690eb3e61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -490,8 +490,8 @@ class BuildError < RuntimeError
sig { returns(T::Array[T.untyped]) }
def fetch_issues
GitHub.issues_for_formula(formula.name, tap: formula.tap, state: "open", type: "issue")
rescue GitHub::API::RateLimitExceededError => e
opoo e.message
rescue GitHub::API::Error => e
opoo "Unable to query GitHub for recent issues on the tap\n#{e.message}"
[]
end