Skip to content

Commit

Permalink
fix(PopulateRNAJSONValueTask): edge case, one champ raises an URI::In…
Browse files Browse the repository at this point in the history
…validURIError
  • Loading branch information
mfo committed Aug 21, 2024
1 parent 8cdd7ef commit 0ed5206
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/tasks/maintenance/populate_rna_json_value_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def process(champ)
data = APIEntreprise::RNAAdapter.new(champ.value, champ&.dossier&.procedure&.id).to_params
return if data.blank?
champ.update(value_json: APIGeoService.parse_rna_address(data['adresse']))
rescue URI::InvalidURIError
# some data raise this error
end

def count
Expand Down

0 comments on commit 0ed5206

Please sign in to comment.