Ignore patches with uploader missing email

Change-Id: I68a0809633bc18d786718331a46e36f778c1c6ae
This commit is contained in:
Ilya Shakhat
2014-04-28 12:34:28 +04:00
parent cf8a9dcc85
commit ecfb9b32ac

View File

@@ -339,6 +339,10 @@ class RecordProcessor(object):
yield self._make_review_record(record)
for patch in record.get('patchSets', []):
if (('email' not in patch['uploader']) or
('username' not in patch['uploader'])):
continue # ignore
yield self._make_patch_record(record, patch)
if 'approvals' not in patch: