mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-08-04 06:40:52 +00:00
No bare except
This commit is contained in:
parent
5c061da8e0
commit
f70cc86222
1 changed files with 2 additions and 2 deletions
|
|
@ -1184,7 +1184,7 @@ class Speedtest(object):
|
|||
d = distance(self.lat_lon,
|
||||
(float(attrib.get('lat')),
|
||||
float(attrib.get('lon'))))
|
||||
except:
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
attrib['d'] = d
|
||||
|
|
@ -1234,7 +1234,7 @@ class Speedtest(object):
|
|||
f = self._opener.open(
|
||||
'%s/speedtest/upload.%s' % (url, ext)
|
||||
)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
data = f.read().strip().decode()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue