Skip to content

Conversation

@radarhere
Copy link
Member

@radarhere radarhere commented Feb 19, 2022

if _handler is None or not hasattr("_handler", "save"):
raise OSError("BUFR save handler not installed")

hasattr("_handler", "save") is incorrect. We are not interested if the string "_handler" has a save attribute, we are interested if the variable _handler has a save attribute.

This was fixed for WmfStubImageFile in 751a6d1c2d13144e240ac2, but the fix wasn't applied to other stub formats.

I have not applied this fix to FITS, as the stub form of that plugin is being deprecated in #6056

@hugovk hugovk merged commit b78e601 into python-pillow:main Feb 19, 2022
@radarhere radarhere deleted the handler branch February 19, 2022 11:33
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.

2 participants