Handle missing emails.
This commit is contained in:
parent
13987164c0
commit
72d4b55b6a
@ -3,6 +3,7 @@
|
||||
import datetime
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import urllib
|
||||
|
||||
|
||||
@ -108,7 +109,9 @@ for filename in changed_merge_files:
|
||||
if j['type'] == 'comment-added':
|
||||
author = j['author'].get('username', None)
|
||||
if not author:
|
||||
author = j['author']['email']
|
||||
author = j['author'].get('email', None)
|
||||
if not author:
|
||||
continue
|
||||
|
||||
number = j['change']['number']
|
||||
patchset = j['patchSet']['number']
|
||||
|
Loading…
Reference in New Issue
Block a user