Skip to content

Commit 6789703

Browse files
committed
[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.
1 parent c768f23 commit 6789703

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/jobs/jsontogha.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def sec_end(job):
2222
with open(sys.argv[1], 'r') as f:
2323
data = json.load(f)
2424
for message in data['messages']:
25-
mtyp = message['type'].encode('utf-8', 'ignore')
26-
murl = message['url'].encode('utf-8', 'ignore')
27-
mmes = message['message'].encode('utf-8', 'ignore')
25+
mtyp = str(message['type'])
26+
murl = str(message['url'])
27+
mmes = str(message['message'])
2828
if mtyp not in storage1.keys():
2929
storage1[mtyp] = {"messages": {}, "cnt": 0}
3030
storage2[mtyp] = {"urls": {}, "cnt": 0}

0 commit comments

Comments
 (0)