summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgerrit/auto-submit/gerrit-autosubmit2
1 files changed, 2 insertions, 0 deletions
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']: