Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError fix for unexpected NoneType in summation of list #780

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

almqv
Copy link

@almqv almqv commented Nov 30, 2021

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.

FIX: TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

Caused when the "finished" list is summed with the function "sum".
@ismail424
Copy link

I also need help with this.

@cruxifixus
Copy link

Is this problem still exist in the current version? Have the changes made fixed the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants