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

Fix improper JSON encoding exception when pillow module not installed #1993

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

jonmmease
Copy link
Contributor

4.4.0 regression. When the pillow module is not installed, and an attempt is made to JSON serialize a figure that includes unsupported object types, an AttributeError: 'NoneType' object has no attribute 'Image' exception was raised.

With this fix, the proper TypeError exception is raised once more.

@jonmmease jonmmease added this to the v4.4.1 milestone Dec 10, 2019
@jonmmease jonmmease merged commit cce9781 into master Dec 10, 2019
@jonmmease jonmmease mentioned this pull request Dec 10, 2019
@nicolaskruchten nicolaskruchten deleted the hotfix_4.4.1 branch June 19, 2020 16:15
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

1 participant