fix(PopulateSiretValueJSONTask): some bad data prevent the task to finish

This commit is contained in:
mfo 2024-08-26 10:10:34 +02:00
parent 8e7e8d9624
commit 03a72ccf06
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -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