From ff5ef694a28817215f9b24922d9350280a0c6c56 Mon Sep 17 00:00:00 2001 From: John Bradley Date: Mon, 9 Mar 2020 20:34:52 -0400 Subject: [PATCH] printJobLog convert bytes to utf-8 Fix for problem raised in issue #3004 --- src/toil/utils/toilStatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toil/utils/toilStatus.py b/src/toil/utils/toilStatus.py index 5850a62130..6210414cbf 100644 --- a/src/toil/utils/toilStatus.py +++ b/src/toil/utils/toilStatus.py @@ -80,7 +80,7 @@ def printJobLog(self): if job.logJobStoreFileID is not None: msg = "LOG_FILE_OF_JOB:%s LOG: =======>\n" % job with job.getLogFileHandle(self.jobStore) as fH: - msg += fH.read() + msg += fH.read().decode('utf-8') msg += "<=========" else: msg = "LOG_FILE_OF_JOB:%s LOG: Job has no log file" % job