Codecov crash in local CircleCI run

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

Description

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/runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
  File "/home/circleci/logictools/venv/lib/python3.8/site-packages/codecov/__main__.py", line 5, in <module>
codecov.main()
  File "/home/circleci/logictools/venv/lib/python3.8/site-packages/codecov/__init__.py", line 635, in main
slug=os.getenv("CIRCLE_PROJECT_USERNAME")
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Error: 
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)
a1bb51a3a0f7317d32

Repository

A link to the repository in question
https://app.codecov.io/gh/nexmoov/logictools

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