From f3cc7365dbe44df5174c4bd49d296dc0123e7948 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 11 Mar 2019 17:15:17 -0400 Subject: [PATCH] Decode logs as UTF-8 --- buildsrht/blueprints/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildsrht/blueprints/jobs.py b/buildsrht/blueprints/jobs.py index c143e48..a2be0f1 100644 --- a/buildsrht/blueprints/jobs.py +++ b/buildsrht/blueprints/jobs.py @@ -276,7 +276,7 @@ def job_by_id(username, job_id): if r.status_code >= 200 and r.status_code <= 299: logs.append({ "name": name, - "log": logify(r.text, + "log": logify(r.content.decode('utf-8'), "task-" + name if name else "setup", log_url) }) return True -- 2.38.5