forked from mirrors/gecko-dev
Bug 1359292 - Handle non-ascii characters in reftest logs; r=jmaher
Non-ascii characters in error messages can cause exceptions when processing structured log messages. The mochitest MessageLogger already handles such cases; this is a simpler implementation for the reftest OutputHandler.
This commit is contained in:
parent
9363869fe0
commit
78c5013b6a
1 changed files with 1 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ class OutputHandler(object):
|
|||
# need to return processed messages to appease remoteautomation.py
|
||||
if not line.strip():
|
||||
return []
|
||||
line = line.decode('utf-8', errors='replace')
|
||||
|
||||
try:
|
||||
data = json.loads(line)
|
||||
|
|
|
|||
Loading…
Reference in a new issue