diff --git a/app/tasks/maintenance/populate_siret_value_json_task.rb b/app/tasks/maintenance/populate_siret_value_json_task.rb index e3f6eacac..3b43ebb73 100644 --- a/app/tasks/maintenance/populate_siret_value_json_task.rb +++ b/app/tasks/maintenance/populate_siret_value_json_task.rb @@ -13,6 +13,8 @@ module Maintenance def process(champ) return if champ.etablissement.blank? champ.update!(value_json: APIGeoService.parse_etablissement_address(champ.etablissement)) + rescue ActiveRecord::RecordInvalid + # noop, just a champ without dossier end def count