- edit watchfooty.py scraping
This commit is contained in:
doms9 2026-03-03 16:59:09 -05:00
parent 75f1d95b12
commit 00000d9c59
5 changed files with 51 additions and 47 deletions

View file

@ -25,8 +25,8 @@ async def get_api_data(page: Page) -> dict[str, list[dict, str, str]]:
timeout=6_000,
)
if resp.status != 200:
log.warning(f"{url} Status Code: {resp.status}")
if not resp or resp.status != 200:
log.warning(f"{url} Status Code: {resp.status if resp else 'None'}")
return {}