[ka2] fix connecteur pro_urbain: échec du GET de la liste propagé (journalisé en échec) au lieu d'un faux succès à 0 annonce
1 changed file +3 −4
modified
louka/connectors/pro_urbain.py
+3 −4
@@ -72,10 +72,9 @@ class ProUrbainConnector(BaseConnector): | |||||
| 72 | 72 | ||||
| 73 | def fetch(self) -> list[Listing]: | 73 | def fetch(self) -> list[Listing]: | ||
| 74 | listings: list[Listing] = [] | 74 | listings: list[Listing] = [] | ||
| 75 | − try: | 75 | + # Échec du GET de la liste = erreur transitoire à propager (journalisée | ||
| 76 | − html = self.get(LIST_URL).text | 76 | + # en échec par ingest), pas un « succès » à 0 annonce. | ||
| 77 | − except Exception: | 77 | + html = self.get(LIST_URL).text | ||
| 78 | − return listings | ||||
| 79 | soup = BeautifulSoup(html, "html.parser") | 78 | soup = BeautifulSoup(html, "html.parser") | ||
| 80 | 79 | ||||
| 81 | seen: set[str] = set() | 80 | seen: set[str] = set() | ||
| 82 | 81 | ||||