From d7f34fc6dd6fa32de2d7f584b84dcb6887d4e988 Mon Sep 17 00:00:00 2001 From: Marvin Pohl Date: Thu, 27 Sep 2018 20:50:21 +0200 Subject: [PATCH] Ignoring sourcestamps with no revision in the reporter. --- buildbot_gitea/reporter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildbot_gitea/reporter.py b/buildbot_gitea/reporter.py index 390485e..afce256 100644 --- a/buildbot_gitea/reporter.py +++ b/buildbot_gitea/reporter.py @@ -115,6 +115,9 @@ class GiteaStatusPush(http.HttpStatusPushBase): for sourcestamp in sourcestamps: sha = sourcestamp['revision'] + if sha is None: + # No special revision for this, so ignore it + continue if 'repository_name' in props: repository_name = props['repository_name'] else: