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
+1 -1
View File
@@ -12,7 +12,7 @@ from src.utils import logger
logging.getLogger("httpx").setLevel("WARNING")
def get_annuaire_data(siret: str) -> dict:
def get_annuaire_data(siret: str) -> dict | None:
url = f"https://recherche-entreprises.api.gouv.fr/search?q={siret}"
try:
response = get(url).raise_for_status()