Merge pull request #4478 from MikeMcQuaid/formulary-no-method

formulary: handle missing methods.
This commit is contained in:
Mike McQuaid 2018-07-15 20:31:32 +01:00 committed by GitHub
commit 359ac6b548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)