lib/imw/tools/summarizer.rb in imw-0.2.13 vs lib/imw/tools/summarizer.rb in imw-0.2.14
- old
+ new
@@ -48,10 +48,10 @@
#
# @return [Array<Hash>]
def summary
@summary ||= inputs.map do |input|
#input.guess_schema! if input.schema.nil? && input.respond_to?(:guess_schema!)
- input.respond_to?(:summary) ? input.summary : {}
+ (input.respond_to?(:summary) ? input.summary : {}) rescue {}
end
end
# The metadata employed by this Summarizer.
#