ValueError: invalid literal for int() with base 10: ''

This commit is contained in:
ligrev 2021-04-08 09:06:35 +08:00 • committed by GitHub
parent c58ad3367b
commit 6e9a667b67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1171,7 +1171,7 @@ class Speedtest(object):
client = get_attributes_by_tag_name(root, 'client')
ignore_servers = list(
map(int, server_config['ignoreids'].split(','))
map(int, (server_config['ignoreids'].split(',') if len(server_config['ignoreids']) else []) )
)
ratio = int(upload['ratio'])