From 546080efe82485eeca3f6628c6f1f3717cbef648 Mon Sep 17 00:00:00 2001 From: Webb Scales Date: Wed, 20 Nov 2024 16:52:06 -0500 Subject: [PATCH] Review feedback --- sync2jira/upstream_issue.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sync2jira/upstream_issue.py b/sync2jira/upstream_issue.py index d0f7840..79b47de 100644 --- a/sync2jira/upstream_issue.py +++ b/sync2jira/upstream_issue.py @@ -350,7 +350,9 @@ def github_issues(upstream, config): try: project_node = _get_current_project_node( upstream, project_number, issuenumber, gh_issue) - item_nodes = project_node['fieldValues']['nodes'] if project_node else [] + if not project_node: + continue + item_nodes = project_node['fieldValues']['nodes'] for item in item_nodes: gh_field_name = item.get('fieldName', {}).get('name') prio_field = github_project_fields.get('priority', {}).get('gh_field')