Merge "Fix matching events without approvals."

This commit is contained in:
Jenkins 2012-06-15 17:19:58 +00:00 committed by Gerrit Code Review
commit bdfc0a1666
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class GerritEventConnector(threading.Thread):
if patchset:
event.patch_number = patchset.get('number')
event.refspec = patchset.get('ref')
event.approvals = data.get('approvals')
event.approvals = data.get('approvals', [])
refupdate = data.get('refUpdate')
if refupdate:
event.project_name = refupdate.get('project')