From 89ba5b2b0a9ba25aacd51baa367d963d9915f62f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 15 Jun 2014 11:24:24 -0500 Subject: [PATCH] brew-test-bot: fix FormulaUnavailableError handling --- Library/Contributions/cmd/brew-test-bot.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 37c4bd61dd..23a07ab54b 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -126,7 +126,12 @@ class Test @formulae = [] url_match = argument.match HOMEBREW_PULL_OR_COMMIT_URL_REGEX - formula = Formula.factory argument rescue FormulaUnavailableError + + begin + formula = Formulary.factory(argument) + rescue FormulaUnavailableError + end + git "rev-parse", "--verify", "-q", argument if $?.success? @hash = argument