mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-01-06 03:50:05 +01:00
Make sure to also catch socket.error. Fixes #87
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user