Skip to content

Commit 6c2ea43

Browse files
Update commits_parser.py (fix author.login error)
1 parent f071254 commit 6c2ea43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commits_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def log_repository_commits(repository: Repository, csv_name, start, finish, bran
3939
continue
4040
if commit.commit is not None:
4141
nvl = lambda val: val or EMPTY_FIELD
42-
commit_data = [repository.full_name, commit.commit.author.name, nvl(commit.author.login), nvl(commit.commit.author.email),
42+
commit_data = [repository.full_name, commit.commit.author.name, nvl(commit.author.login if commit.author else None), nvl(commit.commit.author.email),
4343
commit.commit.author.date, '; '.join([file.filename for file in commit.files]), commit.commit.sha, branch]
4444
info = dict(zip(FIELDNAMES, commit_data))
4545

0 commit comments

Comments
 (0)