lib/mihari/models/artifact.rb in mihari-5.4.3 vs lib/mihari/models/artifact.rb in mihari-5.4.4

- old
+ new

@@ -33,10 +33,10 @@ def initialize(*args, **kwargs) attrs = args.first || kwargs data_ = attrs[:data] - raise InvalidArtifactFormatError if data_.is_a?(Array) || data_.is_a?(Hash) + raise TypeError if data_.is_a?(Array) || data_.is_a?(Hash) super(*args, **kwargs) self.data_type = TypeChecker.type(data)