versions: ignore NameError and ArgumentError

Fixes Homebrew/homebrew#9856.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-01-29 16:00:27 -06:00
parent c38efcef16
commit 8809c85cc3

View File

@ -69,7 +69,7 @@ class Formula
version = nostdout { Formula.factory(path).version }
Object.send(:remove_const, Formula.class_s(name))
version
rescue SyntaxError, TypeError
rescue SyntaxError, TypeError, NameError, ArgumentError
# We rescue these so that we can skip bad versions and
# continue walking the history
nil