From 9ad390ed28a12338e14a17bbdbf54e15490ba4d1 Mon Sep 17 00:00:00 2001 From: Alex Ward Date: Mon, 25 Jun 2018 20:04:55 +0100 Subject: [PATCH] add back SpeedtestBestServerFailer exception --- speedtest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/speedtest.py b/speedtest.py index 659efd8..276cf3f 100755 --- a/speedtest.py +++ b/speedtest.py @@ -341,6 +341,10 @@ class SpeedtestBestServerFailure(SpeedtestException): """Unable to determine best server""" +class SpeedtestMissingBestServer(SpeedtestException): + """get_best_server not called or not able to determine best server""" + + def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object.