lib/rabbit/element/base.rb in rabbit-3.0.1 vs lib/rabbit/element/base.rb in rabbit-3.0.2
- old
+ new
@@ -428,14 +428,10 @@
end
end
def make_prop_value(name, *values)
formatter_name = to_class_name(name)
- begin
- unless Format.const_defined?(formatter_name)
- raise NameError
- end
- rescue NameError
+ unless Format.const_defined?(formatter_name)
raise UnknownPropertyError.new(name)
end
Format.const_get(formatter_name).new(*values)
end