Do not fail if review contains to username

Change-Id: I5fdeaad8faf3bb4f6119ab6df2cc23ed74c465d5
This commit is contained in:
Ilya Shakhat
2016-05-10 17:22:32 +03:00
parent b74cc7076e
commit 52a19cc4b6

View File

@@ -461,6 +461,10 @@ class RecordProcessor(object):
action['by'] = comment['reviewer']
action['grantedOn'] = comment['timestamp']
if ('email' not in action['by'] or
'username' not in action['by']):
continue # ignore
yield self._make_mark_record(
record, record['patchSets'][-1], action)