Revert "policies/email.py: if there are no gpg entries don't continue"

This reverts commit bc49b74ab7.
less-recipients2
Brian Murray 6 months ago
parent bc49b74ab7
commit 248df06002

@ -131,8 +131,6 @@ class EmailPolicy(BasePolicy, Rest):
addresses = [] addresses = []
try: try:
gpg = self.query_lp_rest_api(person + "/gpg_keys", {}) gpg = self.query_lp_rest_api(person + "/gpg_keys", {})
if len(gpg["entries"]) == 0:
return None
for key in gpg["entries"]: for key in gpg["entries"]:
details = self.query_rest_api( details = self.query_rest_api(
"http://keyserver.ubuntu.com/pks/lookup", "http://keyserver.ubuntu.com/pks/lookup",

Loading…
Cancel
Save