mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-09-30 11:38:29 +02:00
Also catch URLError when trying to fetch latency.txt. Fixes #41
This commit is contained in:
+1
-1
@@ -391,7 +391,7 @@ def getBestServer(servers):
|
||||
for i in range(0, 3):
|
||||
try:
|
||||
uh = urlopen('%s/latency.txt' % url)
|
||||
except HTTPError:
|
||||
except (HTTPError, URLError):
|
||||
cum.append(3600)
|
||||
continue
|
||||
start = time.time()
|
||||
|
||||
Reference in New Issue
Block a user