4 Mar
2020
4 Mar
'20
8:30 p.m.
Never mind, I was able to figure it out. If anyone else is searching for a similar issue.
from urllib.error import HTTPError
def remove(mlist): curr_list = mlist.fqdn_listname my_list = client.get_list(curr_list) r_addresses = ['test1@example.com', 'test2@example.com', 'test3@example.com'] for email_addr in r_addresses: try: my_list.remove_owner(email_addr) except HTTPError as err: print (email_addr,my_list, err)