-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TST : unhandle exceptions raised because of Non closed temporary file streams #2394
Comments
Thanks for the report. Could you please test with if callable(convert):
with NamedTemporaryFile(suffix=".pdf", delete=False) as temporary:
write_data_here = convert(temporary.name)
else:
write_data_here = convert instead? If this works, I will submit a corresponding PR to rework/fix this. |
pubpub-zz
added a commit
to pubpub-zz/pypdf
that referenced
this issue
Jan 6, 2024
Issue due to unclosure of temporary file closes py-pdf#2394
MartinThoma
pushed a commit
that referenced
this issue
Jan 6, 2024
MartinThoma
pushed a commit
that referenced
this issue
Jan 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
side effect of #2379
Code + PDF
Traceback
This is the complete traceback I see:
The text was updated successfully, but these errors were encountered: