fix(PopulateRNAJSONValueTask): edge case, one champ raises an URI::InvalidURIError

This commit is contained in:
mfo 2024-08-21 16:25:43 +02:00
parent 8cdd7ef4df
commit 0ed5206d9f
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -15,6 +15,8 @@ module Maintenance
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