lib/epuber/dsl/attribute_support.rb in epuber-0.7.4 vs lib/epuber/dsl/attribute_support.rb in epuber-0.8.0

- old
+ new

@@ -1,8 +1,7 @@ # frozen_string_literal: true - module Epuber module DSL module AttributeSupport # Method to create attribute for DSL object # @@ -84,11 +83,12 @@ @attributes_values[key] = mapped else begin @attributes_values[key] = attr.converted_value(value) - rescue Exception => e - UI.warning("Invalid value `#{value}` for attribute `#{name}`, original error `#{e}`", location: caller_locations[1]) + rescue StandardError => e + UI.warning("Invalid value `#{value}` for attribute `#{name}`, original error `#{e}`", + location: caller_locations[1]) end end end return unless attr.singularize?