diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index ede35e186..7aa93bb5a 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -991,6 +991,7 @@ protected: #if PY_VERSION_HEX >= 0x03030000 // Attach additional error info to the exception if supported if (PyErr_Occurred()) { + // #HelpAppreciated: unit test coverage for this branch. raise_from(PyExc_TypeError, msg.c_str()); return nullptr; }