diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 46bd825e2a4a30fceb6a15491f3ff12642ad35bf..17dbd6f9a5c3a9eb17d2f30188bccc2105988204 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -24,7 +24,7 @@ module Formulary const_set(namespace, mod) begin mod.module_eval(contents, path) - rescue ArgumentError, ScriptError => e + rescue NoMethodError, ArgumentError, ScriptError => e raise FormulaUnreadableError.new(name, e) end class_name = class_s(name)