Skip to content

Commit 6caef60

Browse files
zkoppertCopilot
andauthored
fix: add null check
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7ecbd73 commit 6caef60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

markdown_writer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ def write_to_markdown(
5959
report_file.write(f"- {contributor}\n")
6060

6161
report_file.write("\n## Innersource Contribution Counts:\n")
62-
for contributor, count in innersource_contribution_counts.items():
63-
report_file.write(f"- {contributor}: {count} contributions\n")
62+
if innersource_contribution_counts:
63+
for contributor, count in innersource_contribution_counts.items():
64+
report_file.write(f"- {contributor}: {count} contributions\n")
6465

6566
report_file.write("\n## Team Member Contribution Counts:\n")
6667
if team_member_contribution_counts is not None:

0 commit comments

Comments
 (0)