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

Moved SgiImagePlugin save error to before the start of write operations #2646

Merged
merged 1 commit into from
Aug 16, 2017

Conversation

radarhere
Copy link
Member

When throwing an error on save, I would imagine it is better to do so before any write operations, as opposed to leave a corrupt file behind.

It would also be faster in the instances where the error is thrown.

@wiredfool wiredfool merged commit a4e2dfd into python-pillow:master Aug 16, 2017
@radarhere radarhere deleted the sgi branch August 16, 2017 10:54
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

2 participants