diff --git a/openstack_election/owners.py b/openstack_election/owners.py index 1ce36bce..3b85386f 100644 --- a/openstack_election/owners.py +++ b/openstack_election/owners.py @@ -368,6 +368,14 @@ def main(options): 'commit']['committer']['email'] 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 # accounts when that happens address = normalize_email(email)