aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2012-01-29 16:00:27 -0600
committerJack Nagel2012-01-29 16:00:27 -0600
commit8809c85cc3515736f5c7b85436d1020aa17cb6c4 (patch)
treef5418a1286c4c2249174cdcc9acd7e339d9ca3b3 /Library/Homebrew/cmd
parentc38efcef16e42f87efe5f36a0386cb2fc7e2a084 (diff)
downloadbrew-8809c85cc3515736f5c7b85436d1020aa17cb6c4.tar.bz2
versions: ignore NameError and ArgumentError
Fixes Homebrew/homebrew#9856. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/versions.rb2
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