From fdc61c915ca19ad1e1a6a42cdac57c29af55eaae Mon Sep 17 00:00:00 2001 From: Kay0u Date: Fri, 17 Sep 2021 13:52:53 +0200 Subject: [PATCH] add a missing decode in LogPipe class --- moulinette/utils/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/utils/process.py b/moulinette/utils/process.py index 6b60c304..95b7dce9 100644 --- a/moulinette/utils/process.py +++ b/moulinette/utils/process.py @@ -121,7 +121,7 @@ class LogPipe(threading.Thread): def run(self): """Run the thread, logging everything.""" for line in iter(self.pipeReader.readline, ""): - self.queue.put((self.log_callback, line.strip("\n"))) + self.queue.put((self.log_callback, line.decode('utf-8').strip("\n"))) self.pipeReader.close()