fix flake8 complaints
This commit is contained in:
parent
0bf7498fee
commit
a1b07c569c
|
@ -939,7 +939,7 @@ class Speedtest(object):
|
|||
d = distance(self.lat_lon,
|
||||
(float(attrib.get('lat')),
|
||||
float(attrib.get('lon'))))
|
||||
except:
|
||||
except BaseException:
|
||||
continue
|
||||
|
||||
attrib['d'] = d
|
||||
|
@ -989,7 +989,7 @@ class Speedtest(object):
|
|||
for ext in ['php', 'asp', 'aspx', 'jsp']:
|
||||
try:
|
||||
f = urlopen('%s/speedtest/upload.%s' % (url, ext))
|
||||
except:
|
||||
except BaseException:
|
||||
pass
|
||||
else:
|
||||
data = f.read().strip().decode()
|
||||
|
@ -1292,8 +1292,8 @@ def parse_args():
|
|||
help='Single character delimiter to use in CSV '
|
||||
'output. Default ","')
|
||||
parser.add_argument('--csv-header', action='store_true', default=False,
|
||||
help='Print CSV headers, add --share if you intend on that'
|
||||
'output format')
|
||||
help='Print CSV headers, add --share if you intend '
|
||||
'on that output format')
|
||||
parser.add_argument('--json', action='store_true', default=False,
|
||||
help='Suppress verbose output, only show basic '
|
||||
'information in JSON format. Speeds listed in '
|
||||
|
|
Loading…
Reference in New Issue