Fix NoneType error in render script for null GitHub pinned item nodes#20
Conversation
Filter out edges with null nodes from pinned items before processing, and handle None description fields gracefully in format_repo.
|
@copilot Which repo is causing the issue? |
I can't determine the exact repo from the available data. The committed The most likely cause: the GraphQL query uses You could check by running the GraphQL query manually with your token to see which edge currently returns null. |
Logs the full GraphQL response and checks each pinned item edge for null/empty nodes and missing fields, to help diagnose the CI failure.
The
scripts/renderscript crashes withTypeError: 'NoneType' object is not subscriptablewhen the GitHub GraphQL API returns edges withnullnodes (e.g., deleted/private pinned repos).nodeisNonebefore iterating over pinned reposNonedescriptionfields informat_repoby defaulting to empty string, since GitHub repos can have no description set