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

Added UnidentifiedImageError #4182

Merged
merged 2 commits into from Nov 20, 2019
Merged

Conversation

radarhere
Copy link
Member

Resolves #3892

See how this goes. Pillow 7.0.0 seems like a good time for such changes.

As suggested there, this is a custom error, that inherits from the previous type for backwards compatibility.

See also the related issues #1643 and #2339

@radarhere radarhere force-pushed the custom branch 3 times, most recently from b8afcaf to 081b9fa Compare October 29, 2019 21:26
@hugovk
Copy link
Member

hugovk commented Oct 30, 2019

This'll need release notes.

Shall we add a simple regression test that the new one is an instance of the old one?

docs/releasenotes/7.0.0.rst Outdated Show resolved Hide resolved
docs/releasenotes/7.0.0.rst Outdated Show resolved Hide resolved
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
@radarhere radarhere merged commit 3a6cd40 into python-pillow:master Nov 20, 2019
@radarhere radarhere deleted the custom branch November 20, 2019 08:02
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.

Add a specific exception if image not recognized?
2 participants