Handle issues determining distance to test servers
This commit is contained in:
parent
bab7a9d88e
commit
b846f4dd88
|
@ -550,8 +550,13 @@ class Speedtest(object):
|
||||||
if int(attrib.get('id')) in self.config['ignore_servers']:
|
if int(attrib.get('id')) in self.config['ignore_servers']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
try:
|
||||||
d = distance(self.lat_lon,
|
d = distance(self.lat_lon,
|
||||||
(float(attrib.get('lat')), float(attrib.get('lon'))))
|
(float(attrib.get('lat')),
|
||||||
|
float(attrib.get('lon'))))
|
||||||
|
except:
|
||||||
|
continue
|
||||||
|
|
||||||
attrib['d'] = d
|
attrib['d'] = d
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue