Skip to content

Raise error consistently from inside ImagingNewArrow#9571

Open
radarhere wants to merge 2 commits intopython-pillow:mainfrom
radarhere:arrow
Open

Raise error consistently from inside ImagingNewArrow#9571
radarhere wants to merge 2 commits intopython-pillow:mainfrom
radarhere:arrow

Conversation

@radarhere
Copy link
Copy Markdown
Member

Most of the time, when ImagingNewArrow() encounters an error, it sets an exception.

However, when it does not recognise the image/schema, it returns NULL without raising an error, leaving _new_arrow() to raise an error.

It would seem better for consistency to always raise an error on failure from within the function itself.

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.

1 participant