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
logger statement not guarded in shutil._make_tarball #53419
Comments
A called to logger.info() in shutil._make_tarball is not guarded against the logger being None, and therefore raises an AttributeError if that is the case. |
Patch looks good, but needs a test. |
Added a test to the patch |
Patch looks good. By the way, the logger argument is not documented in shutil.rst. |
This documentation issue is distinct from this; this bug affects applications that *don't* use the logger argument. |
Duplicate report bpo-11045 was opened recently; I didn’t remember this report and committed a one-line fix without a test. Should we try to get a test into 3.2.0? |
I think it would be nice to get this test in. |
I fixed this in 615a29295d5f but forgot to mention the bug number in the commit message. To reproduce the bug, I only had to backport two lines from 3.2, so I did not use your patch. Thanks to both of you nonetheless for the report and help! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: