From 187a29ff6f56a53eb39be0ef3b915bdc5677cbca Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Wed, 2 Oct 2019 22:44:36 -0700 Subject: [PATCH] Bugfix speedtest() --- scripts/wk/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wk/net.py b/scripts/wk/net.py index ceed1cd3..509e708d 100644 --- a/scripts/wk/net.py +++ b/scripts/wk/net.py @@ -54,7 +54,7 @@ def speedtest(): """Run a network speedtest using speedtest-cli.""" cmd = ['speedtest-cli', '--simple'] proc = run_program(cmd, check=False) - output = [line.strip() for line in proc.stdout.splitlines()] + output = [line.strip() for line in proc.stdout.splitlines() if line.strip()] output = [line.split() for line in output] output = [(a, float(b), c) for a, b, c in output] return [f'{a:<10}{b:6.2f} {c}' for a, b, c in output]