diff --git a/tools/triage/weekly_report.py b/tools/triage/weekly_report.py index 4ded5f99254..8fab10aa1b7 100644 --- a/tools/triage/weekly_report.py +++ b/tools/triage/weekly_report.py @@ -107,8 +107,7 @@ def report_personal_weekly_get(username, start, verbose=True): fullname = activity["repo"]["full_name"] + "/pulls/" + activity["content"].split('|')[0] pulls_created.add(fullname) elif op_type == "commit_repo": - if activity["ref_name"] == "refs/heads/main" and activity["content"] \ - and activity["repo"]["name"] != ".profile": + if activity["ref_name"] == "refs/heads/main" and activity["content"] and activity["repo"]["name"] != ".profile": content_json = json.loads(activity["content"]) repo_fullname = activity["repo"]["full_name"] for commits in content_json["Commits"]: