Send json-encoded bytes

This commit is contained in:
Théophile Bastian 2024-03-01 14:19:15 +01:00
parent 52357757dc
commit 0c7e8e1553
1 changed files with 1 additions and 1 deletions

View File

@ -19,4 +19,4 @@ def signal_send(recipients: list[str], message: str) -> None:
}
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as signal_json:
signal_json.connect(configuration.SIGNAL_SOCKET)
signal_json.send(json.dumps(payload))
signal_json.send(json.dumps(payload).encode("utf-8"))