versions: ignore NameError and ArgumentError
Fixes Homebrew/homebrew#9856. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
c38efcef16
commit
8809c85cc3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user