[Perf] Do not fail when encountering non-ASCII chars in JSON payloads

Reviewed By: mbouaziz

Differential Revision: D13084118

fbshipit-source-id: 4df1d9ee8
master
Martino Luca 6 years ago committed by Facebook Github Bot
parent c4701f8a04
commit 28e7063ac4

@ -114,7 +114,7 @@ class NotFoundInJar(Exception):
def load_json_report(opened_jar, path): def load_json_report(opened_jar, path):
try: try:
return json.loads(opened_jar.read(path).decode()) return json.loads(opened_jar.read(path).decode('utf-8'))
except KeyError: except KeyError:
raise NotFoundInJar raise NotFoundInJar

Loading…
Cancel
Save