Unverified Commit 5b1832b4 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

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

parent 7902f640
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)