Automatically resolve .best property (#514)

* automatically call get_best_server

* add back SpeedtestBestServerFailer exception
This commit is contained in:
Alex Ward 2018-12-03 16:20:28 +00:00 committed by Matt Martz
parent 72ed585c6f
commit b2654de410
1 changed files with 1 additions and 4 deletions

View File

@ -1041,10 +1041,7 @@ class Speedtest(object):
@property
def best(self):
if not self._best:
raise SpeedtestMissingBestServer(
'get_best_server not called or not able to determine best '
'server'
)
self.get_best_server()
return self._best
def get_config(self):