| 26 | |
| 27 | #if PY_VERSION_HEX >= 0x030C0000 |
| 28 | python_error::python_error() { |
| 29 | m_value = PyErr_GetRaisedException(); |
| 30 | check(m_value, |
| 31 | "nanobind::python_error::python_error(): error indicator unset!"); |
| 32 | } |
| 33 | |
| 34 | python_error::~python_error() { |
| 35 | if (m_value) { |
nothing calls this directly
no test coverage detected