Also catch URLError when trying to fetch latency.txt. Fixes #41

This commit is contained in:
Matt Martz 2013-12-05 13:37:56 -06:00
parent 756f04da76
commit 6d777db198
1 changed files with 1 additions and 1 deletions

View File

@ -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()