diff options
| author | Jack Nagel | 2012-01-29 16:00:27 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-01-29 16:00:27 -0600 |
| commit | be18671765745d28fa29be91f1e39aa91eb36f30 (patch) | |
| tree | 0cf0d9da06adee052b21c7850aada61979a98f07 | |
| parent | 647eccca8f12691b4d7a59a64fe585dd986e295f (diff) | |
| download | homebrew-be18671765745d28fa29be91f1e39aa91eb36f30.tar.bz2 | |
versions: ignore NameError and ArgumentError
Fixes #9856.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/cmd/versions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index 101addb04..7a4c5cdf4 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -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 |
