Fix syntax error in get_servers except block
This commit is contained in:
parent
20e5d12a5c
commit
2fa2b96b82
|
@ -1436,7 +1436,7 @@ def shell():
|
|||
speedtest.get_servers(servers)
|
||||
except NoMatchedServers:
|
||||
raise SpeedtestCLIError('No matched servers: %s' % args.server)
|
||||
except (ServersRetrievalError, HTTP_ERRORS):
|
||||
except (ServersRetrievalError,) + HTTP_ERRORS:
|
||||
print_('Cannot retrieve speedtest server list')
|
||||
raise SpeedtestCLIError(get_exception())
|
||||
except InvalidServerIDType:
|
||||
|
|
Loading…
Reference in New Issue