Send json-encoded bytes
This commit is contained in:
parent
52357757dc
commit
0c7e8e1553
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as signal_json:
|
||||||
signal_json.connect(configuration.SIGNAL_SOCKET)
|
signal_json.connect(configuration.SIGNAL_SOCKET)
|
||||||
signal_json.send(json.dumps(payload))
|
signal_json.send(json.dumps(payload).encode("utf-8"))
|
||||||
|
|
Loading…
Reference in a new issue