guard tier_fastcom against a falsy target url

This commit is contained in:
Andrew Pimenov 2026-08-09 16:13:10 +03:00
parent 52c0647e77
commit 768490562c

View file

@ -196,7 +196,7 @@ async def tier_fastcom(client: httpx.AsyncClient, cfg: Speedtest, timeout: float
method="fastcom",
download_mbps=throughput_from_samples(samples),
upload_mbps=None,
server=targets[0].get("url", "").split("/")[2] if targets else None,
server=targets[0].get("url").split("/")[2] if targets and targets[0].get("url") else None,
netflix_oca_onnet=on_net,
)