Update Library/Homebrew/dev-cmd/bump-formula-pr.rb

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Sean Molenaar 2023-03-08 13:58:45 +01:00 committed by GitHub
parent 139f90df97
commit 8532bb23cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,6 +353,7 @@ module Homebrew
github_release_data = begin
GitHub::API.open_rest("#{GitHub::API_URL}/repos/#{owner}/#{repo}/releases/tags/#{tag}")
rescue GitHub::API::HTTPNotFoundError
# If this is a 404: we can't do anything.
nil
end