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

Fixed BUFR, GRIB and HDF5 stub saving #6071

Merged
merged 1 commit into from Feb 19, 2022
Merged

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

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