Commit 4ea24734 authored by dpranke@chromium.org's avatar dpranke@chromium.org

fix case where an issue may not have any messages yet

Review URL: http://codereview.chromium.org/6684026

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78089 0039d316-1c4b-4281-b951-d872f2087c98
parent 43470277
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment