Compare commits

..

3 Commits

View File

@ -36,7 +36,7 @@ def sync_members(
check=True, check=True,
) )
for line in output.stdout.splitlines(): for line in output.stdout.splitlines():
print(f"{mailing_list}: {line}") print(f"[Syncing {mailing_list}] {line}")
def main(mailman_bin: Path, api: str, api_auth: str, list_suffix: str, dry_run: bool): def main(mailman_bin: Path, api: str, api_auth: str, list_suffix: str, dry_run: bool):
@ -79,7 +79,7 @@ if __name__ == "__main__":
args = argp.parse_args() args = argp.parse_args()
if "API_AUTH" in os.environ: if "API_AUTH" in os.environ:
api_auth = os.environ.get('API_AUTH') api_auth = os.environ.get("API_AUTH")
else: else:
print("Missing API_AUTH environment variable") print("Missing API_AUTH environment variable")
exit(-1) exit(-1)