Decode command output as ascii
This commit is contained in:
parent
2daf2c00b8
commit
020497139c
@ -28,7 +28,7 @@ def sync_members(mailman_bin: Path, mailing_list: str, members: list[str]):
|
||||
capture_output=True,
|
||||
check=True,
|
||||
)
|
||||
print(output)
|
||||
print(output.stdout.decode('ascii'))
|
||||
|
||||
|
||||
def main(mailman_bin: Path, api: str, token: str, list_suffix: str):
|
||||
@ -39,7 +39,7 @@ def main(mailman_bin: Path, api: str, token: str, list_suffix: str):
|
||||
|
||||
existing_lists = subprocess.run(
|
||||
[mailman_bin / "list_lists", "-b"], capture_output=True, check=True
|
||||
).stdout.split(b"\n")
|
||||
).stdout.decode('ascii').split("\n")
|
||||
certification_lists = r.json()
|
||||
for name, members in certification_lists.items():
|
||||
list_name = name + list_suffix
|
||||
|
Loading…
Reference in New Issue
Block a user