From 6789703b69dd8cbbb293ccfc6c280a1fd94dd7bd Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Fri, 28 Feb 2025 19:41:51 +0000 Subject: [PATCH] [CI] Fix GHA W3C error extractor I can't find why this encoding trick was done so it might break in the future again when the W3C validator changes again. --- .github/jobs/jsontogha.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/jobs/jsontogha.py b/.github/jobs/jsontogha.py index b2916904b2..e0e5a56fcf 100644 --- a/.github/jobs/jsontogha.py +++ b/.github/jobs/jsontogha.py @@ -22,9 +22,9 @@ def sec_end(job): with open(sys.argv[1], 'r') as f: data = json.load(f) for message in data['messages']: - mtyp = message['type'].encode('utf-8', 'ignore') - murl = message['url'].encode('utf-8', 'ignore') - mmes = message['message'].encode('utf-8', 'ignore') + mtyp = str(message['type']) + murl = str(message['url']) + mmes = str(message['message']) if mtyp not in storage1.keys(): storage1[mtyp] = {"messages": {}, "cnt": 0} storage2[mtyp] = {"urls": {}, "cnt": 0}