versions: ignore NameError and ArgumentError

Fixes #9856.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel committed 2012-01-29 16:00:27 -06:00
1 parent 647eccca8f
commit be18671765
1 file changed
+1 -1
+1 -1
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