gerrit/auto-submit/gerrit-autosubmit |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 97a041d399ba0470971904f125db32a76fc0efd0
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Tue Aug 19 14:22:42 2025 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Tue Aug 19 14:23:27 2025 +0200

    gerrit, autosubmit: ignore missing owner key in change json
    
    Not sure why that happens, but it does happen sometimes, so just ignore
    those events instead of exiting.
    
    Change-Id: I94801d6145a41951d8b05f3f1ef13b0afa4cde9d

diff --git a/gerrit/auto-submit/gerrit-autosubmit 
b/gerrit/auto-submit/gerrit-autosubmit
index e2024fa6..2c4ada98 100755
--- a/gerrit/auto-submit/gerrit-autosubmit
+++ b/gerrit/auto-submit/gerrit-autosubmit
@@ -37,6 +37,8 @@ while True:
 
             if event['type'] != "comment-added":
                 continue # should never happen
+            if 'owner' not in event['change'].keys():
+                continue
             if 'username' not in event['change']['owner'].keys():
                 continue
             if event['change']['owner']['username'] != os.environ['USER']:

Reply via email to