diff -Nru speedtest-cli-2.1.2/debian/changelog speedtest-cli-2.1.2/debian/changelog --- speedtest-cli-2.1.2/debian/changelog 2020-02-17 20:46:02.000000000 +0000 +++ speedtest-cli-2.1.2/debian/changelog 2021-04-29 14:17:06.000000000 +0100 @@ -1,3 +1,9 @@ +speedtest-cli (2.1.2-2ubuntu1) UNRELEASED; urgency=medium + + * d/p/fix-ValueError-in-ignore_servers-list.patch (LP: #1923628) + + -- Tj Thu, 29 Apr 2021 14:17:06 +0100 + speedtest-cli (2.1.2-2) unstable; urgency=medium [ Ondřej Nový ] diff -Nru speedtest-cli-2.1.2/debian/patches/fix-ValueError-in-ignore_servers-list.patch speedtest-cli-2.1.2/debian/patches/fix-ValueError-in-ignore_servers-list.patch --- speedtest-cli-2.1.2/debian/patches/fix-ValueError-in-ignore_servers-list.patch 1970-01-01 01:00:00.000000000 +0100 +++ speedtest-cli-2.1.2/debian/patches/fix-ValueError-in-ignore_servers-list.patch 2021-04-29 14:16:24.000000000 +0100 @@ -0,0 +1,23 @@ +commit cadc68b5aef20f28648072cf07a8f155639b81dd +Author: Matt Martz +Date: Thu Apr 8 08:44:32 2021 -0500 + + Handle case where ignoreids is empty or contains empty ids + +diff --git a/speedtest.py b/speedtest.py +index 425f18c..a62a184 100755 +--- a/speedtest.py ++++ b/speedtest.py +@@ -1174,9 +1174,9 @@ class Speedtest(object): + # times = get_attributes_by_tag_name(root, 'times') + client = get_attributes_by_tag_name(root, 'client') + +- ignore_servers = list( +- map(int, server_config['ignoreids'].split(',')) +- ) ++ ignore_servers = [ ++ int(i) for i in server_config['ignoreids'].split(',') if i ++ ] + + ratio = int(upload['ratio']) + upload_max = int(upload['maxchunkcount']) diff -Nru speedtest-cli-2.1.2/debian/patches/series speedtest-cli-2.1.2/debian/patches/series --- speedtest-cli-2.1.2/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ speedtest-cli-2.1.2/debian/patches/series 2021-04-29 14:17:06.000000000 +0100 @@ -0,0 +1 @@ +fix-ValueError-in-ignore_servers-list.patch