diff options
| author | Jack Nagel | 2014-02-08 16:04:53 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-08 16:04:53 -0500 |
| commit | 0cb0c280d506a7452dca1db71e4060f4ab4d99cb (patch) | |
| tree | b263bdea3a2f9e8045f2bd130c5b58209f0b9052 /Library | |
| parent | e7420191141fa4fe5d8087f63cbe63e197507cd3 (diff) | |
| download | homebrew-0cb0c280d506a7452dca1db71e4060f4ab4d99cb.tar.bz2 | |
Don't let issue search kill install process
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 9 |
1 files changed, 8 insertions, 1 deletions
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 |
