Index: presubmit_canned_checks.py |
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py |
index 40df31a59d60bb2bd9f5006f3cf9641652456f0d..ae6ec97608362c94d33750ce1cd903a6ca114c80 100644 |
--- a/presubmit_canned_checks.py |
+++ b/presubmit_canned_checks.py |
@@ -670,7 +670,7 @@ def _Approvers(input_api, email_regexp): |
return email_regexp.match(r) and not input_api.re.match(owner, r) |
approvers = [] |
- for m in issue_props['messages']: |
+ for m in issue_props.get('messages', []): |
if 'lgtm' in m['text'].lower() and match_reviewer(m['sender']): |
approvers.append(m['sender']) |
return set(approvers) |