Skip to content

Fix exception handling in FT2Font init. - #17510

Merged
jklymak merged 1 commit into
matplotlib:masterfrom
QuLogic:invalid-font
Jun 1, 2020
Merged

jklymak merged 1 commit into
matplotlib:masterfrom
QuLogic:invalid-font

Conversation

@QuLogic

@QuLogic QuLogic commented May 26, 2020

Copy link
Copy Markdown
Member

PR Summary

It needs to return -1 when an exception is set, or Python raises a SystemError instead.

Missed this in #15104.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • [N/A] New features are documented, with examples if plot related
  • [N/A] Documentation is sphinx and numpydoc compliant
  • [N/A] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [N/A] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@QuLogic QuLogic added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: text/fonts labels May 26, 2020
@QuLogic QuLogic added this to the v3.3.0 milestone May 26, 2020
@QuLogic
QuLogic requested a review from anntzer May 26, 2020 02:18
Comment thread src/ft2font_wrapper.cpp Resolved
Comment thread src/ft2font_wrapper.cpp Resolved
It needs to return -1 when an exception is set, or Python raises a
`SystemError` instead.

@anntzer anntzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

postci
thanks for cleaning up my mess :)

@jklymak
jklymak merged commit c5c12dd into matplotlib:master Jun 1, 2020
@QuLogic
QuLogic deleted the invalid-font branch June 1, 2020 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: text/fonts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants