From 1a343ec1f0a72e724fcbaf0d87e8e25595cf361c Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Mon, 25 Sep 2023 09:40:46 +0200 Subject: [PATCH] create-tag: Fix TypeError join expects str, so pass a string instead of None. --- create_tag.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/create_tag.py b/create_tag.py index caff0ab..60fbe16 100755 --- a/create_tag.py +++ b/create_tag.py @@ -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"