From eeb1c86890b00dfc76f04d77774a0664a64c4fb6 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Tue, 2 Jan 2024 09:23:43 +0000 Subject: [PATCH] Add debug output --- make_help_scripts/create_pr_stats.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make_help_scripts/create_pr_stats.py b/make_help_scripts/create_pr_stats.py index d191384fe92..08c7f7515d2 100644 --- a/make_help_scripts/create_pr_stats.py +++ b/make_help_scripts/create_pr_stats.py @@ -260,6 +260,9 @@ def get_pr_stats(owner, repos, branches, whitelist, blacklist, earliest_date="") for commits in get_all_pages(commits_url): for commit in commits: + if commit['author'] is None: + print('No author in commit: ' + commit['url']) + continue contributor_login = commit['author']['login'] if contributor_login in blacklist: continue