Bug 1727802 - skip invalid character in log handling. r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D123788
This commit is contained in:
Joel Maher 2021-09-03 19:54:40 +00:00
parent ef7f2682b5
commit d33208a49c

View File

@ -1289,7 +1289,7 @@ class StreamOutput(object):
def __call__(self, line):
ensure = six.ensure_text if self.text else six.ensure_binary
try:
self.stream.write(ensure(line) + ensure("\n"))
self.stream.write(ensure(line, errors="ignore") + ensure("\n"))
except TypeError:
print(
"HEY! If you're reading this, you're about to encounter a "