Codecov crash in local CircleCI run

Please check the [troubleshooting guide] before creating a ticket.
All fields below are required.


Description of the issue

Our local CircleCi run has been erroring since we integrated Codecov. It runs and passes on the circleci
site but it crashes locally.

Error Message:

==> Detecting CI provider
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/", line 86, in _run_code
exec(code, run_globals)
  File "/home/circleci/logictools/venv/lib/python3.8/site-packages/codecov/", line 5, in <module>
  File "/home/circleci/logictools/venv/lib/python3.8/site-packages/codecov/", line 635, in main
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Exited with code exit status 1

I have found little on public forums except of a few unsolved reports on codecov github:

How we call CodeCov in our circleci yaml:
- run:
name: run tests
command: |
. venv/bin/activate
mkdir test-reports
coverage run -m pytest tests --junitxml=test-reports/junit.xml
python3 -m codecov

Commit SHAs

Please include the commit SHA(s)


A link to the repository in question

It seems like you don’t have CIRCLE_PROJECT_USERNAME set locally, is that right?