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']:
|
||||
continue
|
||||
|
||||
d = distance(self.lat_lon,
|
||||
(float(attrib.get('lat')), float(attrib.get('lon'))))
|
||||
try:
|
||||
d = distance(self.lat_lon,
|
||||
(float(attrib.get('lat')),
|
||||
float(attrib.get('lon'))))
|
||||
except:
|
||||
continue
|
||||
|
||||
attrib['d'] = d
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue