Gitea can return JSON null for an issue's labels, assignees, or user fields. dict.get(key, []) returns None when the key is present with a null value (the default is only used for missing keys), so the list comprehensions in get_issue_tool raised 'NoneType' object is not iterable for otherwise-valid issues.
Change
Coalesce with or [] / or {} so null/empty collections normalize to empty results.
Add a regression test covering all three null fields.
Fixes #13.
Gitea can return JSON `null` for an issue's `labels`, `assignees`, or `user` fields. `dict.get(key, [])` returns `None` when the key is present with a null value (the default is only used for missing keys), so the list comprehensions in `get_issue_tool` raised `'NoneType' object is not iterable` for otherwise-valid issues.
## Change
- Coalesce with `or []` / `or {}` so null/empty collections normalize to empty results.
- Add a regression test covering all three null fields.
Gitea may return JSON null for an issue's `labels`, `assignees`, or
`user` fields. `dict.get(key, [])` returns None when the key is present
with a null value (the default is only used for missing keys), so the
list comprehensions raised `'NoneType' object is not iterable` for
otherwise-valid issues. Coalesce with `or []` / `or {}` so empty/null
collections normalize to empty results.
Adds a regression test covering all three null fields.
Latte
merged commit cd309ee290 into dev2026-06-22 12:50:09 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes #13.
Gitea can return JSON
nullfor an issue'slabels,assignees, oruserfields.dict.get(key, [])returnsNonewhen the key is present with a null value (the default is only used for missing keys), so the list comprehensions inget_issue_toolraised'NoneType' object is not iterablefor otherwise-valid issues.Change
or []/or {}so null/empty collections normalize to empty results.Gitea may return JSON null for an issue's `labels`, `assignees`, or `user` fields. `dict.get(key, [])` returns None when the key is present with a null value (the default is only used for missing keys), so the list comprehensions raised `'NoneType' object is not iterable` for otherwise-valid issues. Coalesce with `or []` / `or {}` so empty/null collections normalize to empty results. Adds a regression test covering all three null fields.