Skip to content

Commit

Permalink
create-tag: Fix TypeError
Browse files Browse the repository at this point in the history
join expects str, so pass a string instead of None.
  • Loading branch information
ochosi committed Sep 25, 2023
1 parent 9b14732 commit 1a343ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions create_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ def get_pullrequest_infos(args, repo, hashes):
print(f"Fetching PR for commit {i+1}/{len(hashes)} ({commit_hash})")
time.sleep(2)
pull_request, author, reviewers = list_prs_for_hash(args, api, repo, commit_hash)
if reviewers is None:
reviewers = "Nobody"
if pull_request is not None:
if repo == "cockpit-composer":
msg = (f"- {pull_request.title} (#{pull_request.number})\n"
Expand Down

0 comments on commit 1a343ec

Please sign in to comment.