You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When release metadata is not fully populated on a repo (a rare occurrence), the following error is generated:
Traceback (most recent call last):
File "/home/sean/github/virtualenv/ag3/lib/python3.8/site-packages/celery/app/trace.py", line 451, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/sean/github/virtualenv/ag3/lib/python3.8/site-packages/celery/app/trace.py", line 734, in __protected_call__
return self.run(*args, **kwargs)
File "/home/sean/github/ag3/augur/tasks/github/releases/tasks.py", line 15, in collect_releases
releases_model(session, repo.repo_git, repo.repo_id)
File "/home/sean/github/ag3/augur/tasks/github/releases/core.py", line 186, in releases_model
insert_release(session, repo_id, data['owner'], release)
File "/home/sean/github/ag3/augur/tasks/github/releases/core.py", line 79, in insert_release
release_inf = get_release_inf(session, repo_id, release, tag_only)
File "/home/sean/github/ag3/augur/tasks/github/releases/core.py", line 19, in get_release_inf
name = "" if release['author']['name'] is None else release['author']['name']
TypeError: 'NoneType' object is not subscriptable
How to reproduce:
The ag3 instance on our test server has this error right now.
Expected behavior:
No error
Software versions:
augur-new-dev
OS: Ubuntu 20.5
The text was updated successfully, but these errors were encountered:
def get_release_inf(session, repo_id, release, tag_only):
if not tag_only:
name = "" if release['author']['name'] is None else release['author']['name']
We literally are trying to subscript a NoneType, which is not allowed. The issue is there is no author object at all. So, I think we need to test for that first. @ABrain7710 / @IsaacMilarky
Description:
When release metadata is not fully populated on a repo (a rare occurrence), the following error is generated:
How to reproduce:
The
ag3
instance on our test server has this error right now.Expected behavior:
No error
Software versions:
augur-new-dev
The text was updated successfully, but these errors were encountered: