mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-08-04 14:49:36 +00:00
Also catch URLError when trying to fetch latency.txt. Fixes #41
This commit is contained in:
parent
756f04da76
commit
6d777db198
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue