This commit is contained in:
Stephanie Sunshine 2021-07-08 16:16:19 +08:00 committed by GitHub
commit af7b503702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1893,7 +1893,10 @@ def shell():
if args.list:
try:
speedtest.get_servers()
if args.exclude:
speedtest.get_servers(exclude=args.exclude)
else:
speedtest.get_servers()
except (ServersRetrievalError,) + HTTP_ERRORS:
printer('Cannot retrieve speedtest server list', error=True)
raise SpeedtestCLIError(get_exception())