Handle case where ignoreids is empty or contains empty ids

This commit is contained in:
Matt Martz 2021-04-08 08:44:32 -05:00
parent db46af8bcd
commit cadc68b5ae
No known key found for this signature in database
GPG Key ID: 40832D88E9FC91D8
1 changed files with 3 additions and 3 deletions

View File

@ -1174,9 +1174,9 @@ class Speedtest(object):
# times = get_attributes_by_tag_name(root, 'times')
client = get_attributes_by_tag_name(root, 'client')
ignore_servers = list(
map(int, server_config['ignoreids'].split(','))
)
ignore_servers = [
int(i) for i in server_config['ignoreids'].split(',') if i
]
ratio = int(upload['ratio'])
upload_max = int(upload['maxchunkcount'])