pybind / pybind11

Seamless operability between C++11 and Python
https://pybind11.readthedocs.io/
Other
15.11k stars 2.05k forks source link

Add 2 missing `throw error_already_set();` #4863

Closed rwgk closed 9 months ago

rwgk commented 9 months ago

Description

Fixes oversights in PR #4570.

Changelog not needed: We want this fixed, but it's very unlikely that the error path is actually executed.

Suggested changelog entry:

rwgk commented 9 months ago

This is so obvious-in-hindsight and trivial, I'll go ahead merge this.