fix(PopulateSiretValueJSONTask): some bad data prevent the task to finish
This commit is contained in:
parent
8e7e8d9624
commit
03a72ccf06
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ module Maintenance
|
||||||
def process(champ)
|
def process(champ)
|
||||||
return if champ.etablissement.blank?
|
return if champ.etablissement.blank?
|
||||||
champ.update!(value_json: APIGeoService.parse_etablissement_address(champ.etablissement))
|
champ.update!(value_json: APIGeoService.parse_etablissement_address(champ.etablissement))
|
||||||
|
rescue ActiveRecord::RecordInvalid
|
||||||
|
# noop, just a champ without dossier
|
||||||
end
|
end
|
||||||
|
|
||||||
def count
|
def count
|
||||||
|
|
Loading…
Reference in a new issue