diff --git a/sync_adherents_mailman.py b/sync_adherents_mailman.py index 5af986b..6047f42 100644 --- a/sync_adherents_mailman.py +++ b/sync_adherents_mailman.py @@ -20,7 +20,7 @@ if changed: for section in config.sections(): if section not in ["Re2o", "Mailman"] and config.getboolean(section, 'activate'): list_name = config.get(section, "list_name", fallback=section) - response1 = requests.get(roster_url.format(mailman_url=mailman_url, list_namelist_name, domain=domain), auth=(mailman_username, mailman_password)) + response1 = requests.get(roster_url.format(mailman_url=mailman_url, list_name=list_name, domain=domain), auth=(mailman_username, mailman_password)) if "entries" in response1.json(): entries = response1.json()['entries'] old_emails = [entry['email'] for entry in entries]