Skip to content

gh-149760: Improve exception tracebacks from TarFile.next() - #157257

Open
lpyu001 wants to merge 1 commit into
python:mainfrom
lpyu001:cpython-lpy/gh-149760-tarfile-traceback
Open

gh-149760: Improve exception tracebacks from TarFile.next()#157257
lpyu001 wants to merge 1 commit into
python:mainfrom
lpyu001:cpython-lpy/gh-149760-tarfile-traceback

Conversation

@lpyu001

@lpyu001 lpyu001 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Keep the original traceback when TarFile.next() reraises non-zlib exceptions, including when zlib is unavailable. Preserve the existing conversion of zlib.error to ReadError.

Keep the original traceback when TarFile.next() reraises non-zlib exceptions, including when zlib is unavailable. Preserve the existing conversion of zlib.error to ReadError.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant