-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Undocumented breaking change in Pillow 11.0.0 for im attribute #8581
Comments
Hi. This change was made in #8279. While you could use Might I suggest replacing |
@radarhere How would I use |
|
I'm also curious to know why you wish to check if an image has been loaded or not in the first place? |
Admittedly a bit of a niche scenario, but in our code it's to know if opening the image should be retried if it previously failed to be loaded due to file corruption. |
Has my suggestion solved your problem? |
@radarhere Yes, thank you. |
What did you do?
What did you expect to happen?
Originally the
im
attribute would simply beNone
if the image was not loaded yet, which you could access to check this.What actually happened?
Now accessing the
im
attribute when the image has not been loaded yet results in an assertion error.What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: