mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-10-18 17:45:53 +02:00
Automatically resolve .best property (#514)
* automatically call get_best_server * add back SpeedtestBestServerFailer exception
This commit is contained in:
+1
-4
@@ -1041,10 +1041,7 @@ class Speedtest(object):
|
|||||||
@property
|
@property
|
||||||
def best(self):
|
def best(self):
|
||||||
if not self._best:
|
if not self._best:
|
||||||
raise SpeedtestMissingBestServer(
|
self.get_best_server()
|
||||||
'get_best_server not called or not able to determine best '
|
|
||||||
'server'
|
|
||||||
)
|
|
||||||
return self._best
|
return self._best
|
||||||
|
|
||||||
def get_config(self):
|
def get_config(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user