chaoss / chaoss/CollectOSS

Core:collect_linux_badge_info error: AttributeError("'NoneType' object has no attribute 'text'")

Open
#318 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
13
Forks
17
Avg merge
6h 59m
Merged PRs (30d)
1

Description

Exception | AttributeError("'NoneType' object has no attribute 'text'")

Stack Trace

```
Traceback (most recent call last):
File "/collectoss/collectoss/tasks/github/repo_info/core.py", line 286, in badges_model
response_data = response.json()
^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/collectoss/.venv/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/collectoss/.venv/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/collectoss/collectoss/tasks/github/repo_info/tasks.py", line 37, in collect_linux_badge_info
badges_model(logger, repo_git, repo.repo_id, session)
File "/collectoss/collectoss/tasks/github/repo_info/core.py", line 288, in badges_model
response_data = json.loads(json.dumps(response.text))
^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'text'
-- | --

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.