mirror of
https://github.com/Horizontal42/netsleuth.git
synced 2026-11-10 23:52:04 +03:00
guard tier_fastcom against a falsy target url
This commit is contained in:
parent
52c0647e77
commit
768490562c
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ async def tier_fastcom(client: httpx.AsyncClient, cfg: Speedtest, timeout: float
|
||||||
method="fastcom",
|
method="fastcom",
|
||||||
download_mbps=throughput_from_samples(samples),
|
download_mbps=throughput_from_samples(samples),
|
||||||
upload_mbps=None,
|
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,
|
netflix_oca_onnet=on_net,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue