From 1357b67334144f36d835c484718b6f409cce152f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 Apr 2020 16:20:10 +0200 Subject: [PATCH] remove typo --- sync_adherents_mailman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]