fix degewo
This commit is contained in:
parent
4ea437e3e6
commit
0f2f842e04
3 changed files with 39 additions and 0 deletions
|
|
@ -72,6 +72,14 @@ class GewobagHandler(BaseHandler):
|
|||
html_content = await iframe_page.content()
|
||||
with open(DATA_DIR / f"gewobag_wohnungshelden_{listing['id']}.html", "w", encoding="utf-8") as f:
|
||||
f.write(html_content)
|
||||
|
||||
# Check for Wohnungshelden error messages
|
||||
if "Fehler beim Laden" in html_content or "Beim Laden der Gesuchsdaten ist ein Fehler aufgetreten" in html_content:
|
||||
logger.warning("[GEWOBAG] Wohnungshelden iframe shows error - may be transient, will retry")
|
||||
result["success"] = False
|
||||
result["message"] = "Wohnungshelden application form error - will retry later"
|
||||
await iframe_page.close()
|
||||
return result
|
||||
except Exception as e:
|
||||
logger.warning(f"[GEWOBAG] Could not save HTML: {e}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue