mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 19:11:24 +08:00
batcave: encode to bytes before sending things through a socket
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
@@ -130,7 +130,7 @@ if branch == 'master':
|
||||
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.connect((ZODBOT_SERVER, ZODBOT_PORT))
|
||||
s.sendall(channel + " " + parsed_commit)
|
||||
s.sendall((channel + " " + parsed_commit).encode('utf-8'))
|
||||
msg = f"{channel} {parsed_commit}"
|
||||
s.sendall(msg.encode('utf-8'))
|
||||
s.close()
|
||||
|
||||
Reference in New Issue
Block a user