mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-01-09 21:40:10 +01:00
Don't continu elooping if the request is successful
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user