This commit is contained in:
doms9 2026-03-05 19:39:35 -05:00
parent cfa9e28055
commit 00000d9a91
2 changed files with 5 additions and 2 deletions

View file

@ -44,7 +44,10 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
event_info = api_data[sport]
for event in event_info:
t1, t2 = event["awayTeam"], event["homeTeam"]
t1, t2 = event.get("awayTeam"), event.get("homeTeam")
if not (t1 and t2):
continue
name = f"{t1} vs {t2}"

View file

@ -99,7 +99,7 @@ async def process_event(
try:
try:
async with page.expect_response(strm_handler, timeout=2_500) as strm_resp:
async with page.expect_response(strm_handler, timeout=3_250) as strm_resp:
resp = await page.goto(
url,
wait_until="domcontentloaded",