From 8d9b1ea92d1494149fc198c3af8272ad39403d79 Mon Sep 17 00:00:00 2001 From: BenediktMKuehne Date: Tue, 5 Dec 2023 14:24:28 +0000 Subject: [PATCH] add ignore comment for CodeQL --- embark/reporter/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/embark/reporter/views.py b/embark/reporter/views.py index d0978903..15af802c 100644 --- a/embark/reporter/views.py +++ b/embark/reporter/views.py @@ -66,6 +66,7 @@ def html_report_path(request, analysis_id, html_path, html_file): except UnicodeDecodeError as decode_error: logger.error("{%s} with error: %s", report_path, decode_error) # removes all non utf8 chars from html USING: https://stackoverflow.com/questions/191359/how-to-convert-a-file-to-utf-8-in-python + # CodeQL issue is not relevant with codecs.open(report_path, "r", encoding='latin1') as sourceFile: with codecs.open(f'{report_path}.new', "w", "utf-8") as targetFile: while True: