Skip to content

Commit

Permalink
Merge pull request #863 from ggainey/fix_gh_bz_script
Browse files Browse the repository at this point in the history
Fix edge-case dealing w/ GH issues with "None" body-attribute.
  • Loading branch information
ggainey authored Jun 4, 2024
2 parents a7c7f4b + 996341a commit 7839e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/github_bugzilla.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def process_github_issues(BZ, g, links_issues_record):
if "github.com/pulp" not in issue.html_url:
continue
print(f"Processing github issue: {issue.html_url}")
text = getattr(issue, "body", "")
text = "" if getattr(issue, "body", "") == None else getattr(issue, "body", "")
for comment in issue.get_comments():
text = text + "\n\n" + comment.body
if not text:
Expand Down Expand Up @@ -422,7 +422,7 @@ def process_bugzillas(BZ, g):
if "github.com/pulp" not in issue.html_url:
continue
print(f" -> {issue.html_url}")
text = getattr(issue, "body", "")
text = "" if getattr(issue, "body", "") == None else getattr(issue, "body", "")
for comment in issue.get_comments():
text = text + "\n\n" + comment.body
bugzillas = re.findall(r".*bugzilla.redhat.com(.*)=([0-9]+)", text)
Expand Down

0 comments on commit 7839e6a

Please sign in to comment.