Don't continu elooping if the request is successful

This commit is contained in:
Matt Martz 2015-02-26 10:25:11 -06:00
parent 3ee45cace8
commit 3cc06168f5
1 changed files with 4 additions and 0 deletions

View File

@ -429,6 +429,10 @@ def closestServers(client, all=False):
except SpeedtestCliServerListError:
continue
# We were able to fetch and parse the list of speedtest.net servers
if servers:
break
if not servers:
print_('Failed to retrieve list of speedtest.net servers')
sys.exit(1)