jakubno opened a new pull request, #23301:
URL: https://github.com/apache/airflow/pull/23301
Took after #21053 due to inactivity
>When the task outputs some strange characters, decoding will lead to
"UnicodeDecodeError" error due to inconsistent encoding. We can try-catch it or
ignore it by specifying the parameter: errors="backslashreplace" .
e.g.
line = ''
for raw_line in iter(self.sub_process.stdout.readline, b''):
try:
line = raw_line.decode(output_encoding).rstrip()
except UnicodeDecodeError as err:
print(err, output_encoding, raw_line)
self.log.info("%s", line)
>closes: https://github.com/apache/airflow/issues/20966
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]