otro error que pueden producir fechas mal cargadas
This commit is contained in:
parent
a55ff02ce7
commit
ee900a5148
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class MetadataEvent < MetadataTemplate
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Date.parse value.dig(dt, 'date')
|
Date.parse value.dig(dt, 'date')
|
||||||
rescue ArgumentError
|
rescue ArgumentError, TypeError
|
||||||
errors << I18n.t("metadata.#{type}.date_non_parseable")
|
errors << I18n.t("metadata.#{type}.date_non_parseable")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue