Skip to content

Commit 2470e34

Browse files
fix forgejo tests, skip contributor=None
1 parent 514dcff commit 2470e34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/contributors_parser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def get_contributors_stats(client: IRepositoryAPI, repository: Repository) -> di
6565
for commit in commits:
6666
contributor = commit.author
6767

68+
if not contributor:
69+
continue
70+
6871
if contributor.login not in contributors_stats:
6972
contributors_stats[contributor.login] = {
7073
'total_commits': 0,

0 commit comments

Comments
 (0)