mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-23 17:09:27 +00:00
Improve error message in rare case
This commit is contained in:
parent
ff3185ea7d
commit
95eeaefd1e
@ -398,6 +398,7 @@ public:
|
||||
try {
|
||||
m_lazy_what = detail::error_string(m_type.ptr(), m_value.ptr(), m_trace.ptr());
|
||||
} catch (...) {
|
||||
PyErr_SetString(PyExc_RuntimeError, "Unknown internal error occurred");
|
||||
return "Unknown internal error occurred";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user