diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index d5a0baeba682ab497e0efc4c7974ab881c761ca3..46bd825e2a4a30fceb6a15491f3ff12642ad35bf 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 ScriptError => e
+    rescue ArgumentError, ScriptError => e
       raise FormulaUnreadableError.new(name, e)
     end
     class_name = class_s(name)