rblib.utils.irc_msg: encode the string before passing them to subprocess.run()

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 7902f640
......@@ -73,5 +73,5 @@ def strip_epoch(version):
def irc_msg(msg, channel='debian-reproducible'):
kgb = ['kgb-client', '--conf', '/srv/jenkins/kgb/%s.conf' % channel,
'--relay-msg']
kgb.extend(str(msg).strip().split())
kgb.extend(str(msg).strip().encode('utf-8').split())
subprocess.run(kgb)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment