speedtest-cli
speedtest-cli copied to clipboard
TypeError fix for unexpected NoneType in summation of list
Traceback (most recent call last):
File "/usr/bin/speedtest", line 11, in <module>
load_entry_point('speedtest-cli==2.0.2', 'console_scripts', 'speedtest')()
File "/usr/lib/python3/dist-packages/speedtest.py", line 1887, in main
shell()
File "/usr/lib/python3/dist-packages/speedtest.py", line 1856, in shell
speedtest.upload(callback=callback, pre_allocate=args.pre_allocate)
File "/usr/lib/python3/dist-packages/speedtest.py", line 1577, in upload
self.results.bytes_sent = sum(finished)
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
Caused when the "finished" list is summed with the function "sum" near line 1678.
I also need help with this.
Is this problem still exist in the current version? Have the changes made fixed the problem?