Handle issues determining distance to test servers

This commit is contained in:
Matt Martz 2014-02-28 12:16:46 -06:00
parent bab7a9d88e
commit b846f4dd88
1 changed files with 7 additions and 2 deletions

View File

@ -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: