Skip to content

Commit

Permalink
fix to speedtest python file on 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelloc authored Apr 12, 2021
1 parent d4304e0 commit aa7dc44
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg-speedtest/files/usr/local/pkg/speedtest.py.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- /usr/local/lib/python3.7/site-packages/speedtest.orig.py 2021-04-11 19:09:01.919309000 -0300
+++ /usr/local/lib/python3.7/site-packages/speedtest.py 2021-04-11 19:09:48.620495000 -0300
@@ -1171,7 +1171,7 @@
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'])

1 comment on commit aa7dc44

@sseerrkkaann
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Marcelloc, How are you? You haven't posted on github for a long time. How is your health? I'm waiting for your message.

Please sign in to comment.