Skip to content

Commit d816e4f

Browse files
zkoppertCopilot
andauthored
fix: null check
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4705e3f commit d816e4f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

markdown_writer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ def write_to_markdown(
4747
f"### Original Commit Author: {original_commit_author} (Manager: {original_commit_author_manager})\n\n"
4848
)
4949
report_file.write("## Team Members that Own the Repo:\n")
50-
for member in team_members_that_own_the_repo:
51-
report_file.write(f"- {member}\n")
50+
if team_members_that_own_the_repo:
51+
for member in team_members_that_own_the_repo:
52+
report_file.write(f"- {member}\n")
53+
else:
54+
report_file.write("No team members available.\n")
5255

5356
report_file.write("\n## All Contributors:\n")
5457
for contributor in all_contributors:

0 commit comments

Comments
 (0)