diff --git a/app/tasks/maintenance/populate_rna_json_value_task.rb b/app/tasks/maintenance/populate_rna_json_value_task.rb index 1e20a5cc933..71680f3fd8c 100644 --- a/app/tasks/maintenance/populate_rna_json_value_task.rb +++ b/app/tasks/maintenance/populate_rna_json_value_task.rb @@ -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