Skip to content

Commit

Permalink
add ignore comment for CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Dec 5, 2023
1 parent b204c0a commit 8d9b1ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions embark/reporter/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8d9b1ea

Please sign in to comment.