Skip to content

Commit

Permalink
[CI] Fix GHA W3C error extractor
Browse files Browse the repository at this point in the history
I can't find why this encoding trick was done so it might break in the
future again when the W3C validator changes again.
  • Loading branch information
vmcj committed Feb 28, 2025
1 parent c768f23 commit 6789703
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/jobs/jsontogha.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6789703

Please sign in to comment.