mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-08-04 06:40:52 +00:00
Make sure to also catch socket.error. Fixes #87
This commit is contained in:
parent
759ef15636
commit
6c8dd05872
1 changed files with 1 additions and 1 deletions
|
|
@ -412,7 +412,7 @@ def getBestServer(servers):
|
|||
h.request("GET", urlparts[2])
|
||||
r = h.getresponse()
|
||||
total = (timeit.default_timer() - start)
|
||||
except (HTTPError, URLError):
|
||||
except (HTTPError, URLError, socket.error):
|
||||
cum.append(3600)
|
||||
continue
|
||||
text = r.read(9)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue