Réduction des petites erreurs

This commit is contained in:
Colin Maudry
2026-04-24 13:36:15 +02:00
parent a6049b3244
commit 1839928e69
4 changed files with 11 additions and 3 deletions
+2
View File
@@ -7,6 +7,8 @@ def make_org_jsonld(org_id, org_type, org_name=None, type_org_id="SIRET") -> dic
address = None
if type_org_id.lower() == "siret" and len(org_id) == 14:
annuaire_data = get_annuaire_data(org_id)
if not annuaire_data:
return {}
annuaire_address = annuaire_data["matching_etablissements"][0]
code_postal = annuaire_address["code_postal"]
commune = annuaire_address["libelle_commune"]