mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-05-13 16:47:54 +00:00
Don't continu elooping if the request is successful
This commit is contained in:
parent
3ee45cace8
commit
3cc06168f5
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue