From 0cb0c280d506a7452dca1db71e4060f4ab4d99cb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 8 Feb 2014 16:04:53 -0500 Subject: Don't let issue search kill install process --- Library/Homebrew/exceptions.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 24b9e706e..b03896669 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -169,7 +169,14 @@ class BuildError < Homebrew::InstallationError end def issues - @issues ||= GitHub.issues_for_formula(formula.name) + @issues ||= fetch_issues + end + + def fetch_issues + GitHub.issues_for_formula(formula.name) + rescue GitHub::RateLimitExceededError => e + opoo e.message + [] end def dump -- cgit v1.2.3