From 2daf2c00b81ef8c3a77e7a644f56d913dba26e3b Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 25 Dec 2022 02:12:08 -0500 Subject: [PATCH] Add a bit more feedback for missing lists --- mailman_sync.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mailman_sync.py b/mailman_sync.py index 8b1d5e8..a2dcb3d 100755 --- a/mailman_sync.py +++ b/mailman_sync.py @@ -42,9 +42,11 @@ def main(mailman_bin: Path, api: str, token: str, list_suffix: str): ).stdout.split(b"\n") certification_lists = r.json() for name, members in certification_lists.items(): - print(name, "\n".join(members)) - if name + list_suffix in existing_lists: + list_name = name + list_suffix + if list_name in existing_lists: sync_members(mailman_bin, name, members) + else: + print(f"Skipping {list_name}, as it does not exist in Mailman") if __name__ == "__main__":