Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mail: handle autoDecode failure for job logs with binary data #208

Merged
merged 2 commits into from
Sep 10, 2022

Conversation

wwade
Copy link
Owner

@wwade wwade commented Sep 10, 2022

I ran a command that wrote a tarball into the job log file and so it
couldn't be decoded as utf-8. It subsequently caused autoDecode to
fail with a UnicodeDecodeError.

ValueError is an ancestor of UnicodeDecodeError and would hopefully
cover other decoding errors for other encodings as well.

There was a missing function name to indicate the log level. This one
should be at the "debug" level since we tend to need to run the kill
commands a few times to stick.
I ran a command that wrote a tarball into the job log file and so it
couldn't be decoded as utf-8. It subsequently caused autoDecode to
fail with a UnicodeDecodeError.

ValueError is an ancestor of UnicodeDecodeError and would hopefully
cover other decoding errors for other encodings as well.
@wwade wwade merged commit c458fe4 into master Sep 10, 2022
@wwade wwade deleted the mail-decode-binary-handling branch September 10, 2022 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant