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

Remove temporary file when error is raised #7148

Merged
merged 1 commit into from Jun 6, 2023

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented May 9, 2023

Helps #7147 by ensuring that temporary files are still removed, even if the code returns early due to an error.

@radarhere
Copy link
Member Author

#7200 superseded this for ImageGrab, but there are similar changes made to other parts of the code.

@hugovk hugovk added the automerge Automatically merge PRs that are ready label Jun 6, 2023
@mergify mergify bot merged commit 9264c3d into python-pillow:main Jun 6, 2023
56 of 58 checks passed
@radarhere radarhere deleted the unlink branch June 6, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PRs that are ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants