Skip to content

Commit cadc68b

Browse files
committed
Handle case where ignoreids is empty or contains empty ids
1 parent db46af8 commit cadc68b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

speedtest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,9 +1174,9 @@ def get_config(self):
11741174
# times = get_attributes_by_tag_name(root, 'times')
11751175
client = get_attributes_by_tag_name(root, 'client')
11761176

1177-
ignore_servers = list(
1178-
map(int, server_config['ignoreids'].split(','))
1179-
)
1177+
ignore_servers = [
1178+
int(i) for i in server_config['ignoreids'].split(',') if i
1179+
]
11801180

11811181
ratio = int(upload['ratio'])
11821182
upload_max = int(upload['maxchunkcount'])

0 commit comments

Comments
 (0)