diff options
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 2ec8afd81..ea4b655f5 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -33,7 +33,11 @@ module Homebrew extend self if count == 0 and not blacklisted? query puts "No formula found for #{query.inspect}. Searching open pull requests..." - GitHub.find_pull_requests(rx) { |pull| puts pull } + begin + GitHub.find_pull_requests(rx) { |pull| puts pull } + rescue GitHub::Error => e + opoo e.message + end end end end @@ -81,6 +85,8 @@ module Homebrew extend self end end results + rescue GitHub::Error + [] end def search_formulae rx |
