From b44799e811f51842271f7caea0011b49a75b07cc Mon Sep 17 00:00:00 2001 From: klezVirus Date: Tue, 23 May 2023 09:32:41 +0100 Subject: [PATCH] Fix bug preventing compiler output from displaying --- inceptor/compilers/Compiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inceptor/compilers/Compiler.py b/inceptor/compilers/Compiler.py index c0f79f2..eaadab3 100644 --- a/inceptor/compilers/Compiler.py +++ b/inceptor/compilers/Compiler.py @@ -65,9 +65,9 @@ class Compiler(ABC): print(cmd) output = subprocess.check_output(cmd, stderr=subprocess.STDOUT) if Config().get_boolean("DEBUG", "COMPILERS"): - print(output.decode()) + print(output.decode(errors="replace")) except subprocess.CalledProcessError as e: - for line in e.output.decode().split("\n"): + for line in e.output.decode(errors="replace").split("\n"): if re.search(r"error", line): print(f" [-] Error: {line}") raise Exception("Compiler Error")