Skip to content

Commit

Permalink
fix(PopulateSiretValueJSONTask): some bad data prevent the task to fi…
Browse files Browse the repository at this point in the history
…nish
  • Loading branch information
mfo committed Aug 26, 2024
1 parent 8e7e8d9 commit 03a72cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/tasks/maintenance/populate_siret_value_json_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def collection
def process(champ)
return if champ.etablissement.blank?
champ.update!(value_json: APIGeoService.parse_etablissement_address(champ.etablissement))
rescue ActiveRecord::RecordInvalid

Check warning on line 16 in app/tasks/maintenance/populate_siret_value_json_task.rb

View check run for this annotation

Codecov / codecov/patch

app/tasks/maintenance/populate_siret_value_json_task.rb#L16

Added line #L16 was not covered by tests
# noop, just a champ without dossier
end

def count
Expand Down

0 comments on commit 03a72cc

Please sign in to comment.