From c15e8af7f86932f8a064a076b606fd2028b8c7be Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Wed, 22 May 2019 19:00:16 +0200 Subject: [PATCH] Fix release script for null user Signed-off-by: Ulysses Souza --- script/release/release/repository.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/release/release/repository.py b/script/release/release/repository.py index 0dc724f80..a0281eaa3 100644 --- a/script/release/release/repository.py +++ b/script/release/release/repository.py @@ -220,6 +220,8 @@ def get_contributors(pr_data): commits = pr_data.get_commits() authors = {} for commit in commits: + if not commit or not commit.author or not commit.author.login: + continue author = commit.author.login authors[author] = authors.get(author, 0) + 1 return [x[0] for x in sorted(list(authors.items()), key=lambda x: x[1])]