Skip if e-mail in Gerrit is None

Need to skip to work properly if E-mail address preferred in Gerrit
for owner's account is None

Change-Id: I2f222c9c58b9db9df1eb8370b1703ef690c1243d
This commit is contained in:
Ian Y. Choi 2022-09-13 00:31:03 +09:00
parent a1eb1777f9
commit d5c2dfdc98

View File

@ -368,6 +368,14 @@ def main(options):
'commit']['committer']['email'] 'commit']['committer']['email']
break break
# If the E-mail address is not found, skip
# since the item cannot be validated any more
if email is None:
print(
'ACCOUNT PREFERRED EMAIL IS NONE: %s'
% owner, file=sys.stderr)
continue
# Find duplicate addresses and merge # Find duplicate addresses and merge
# accounts when that happens # accounts when that happens
address = normalize_email(email) address = normalize_email(email)