MCPcopy Create free account
hub / github.com/wjakob/nanobind / python_error

Method python_error

src/error.cpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27#if PY_VERSION_HEX >= 0x030C0000
28python_error::python_error() {
29 m_value = PyErr_GetRaisedException();
30 check(m_value,
31 "nanobind::python_error::python_error(): error indicator unset!");
32}
33
34python_error::~python_error() {
35 if (m_value) {

Callers

nothing calls this directly

Calls 1

strdup_checkFunction · 0.85

Tested by

no test coverage detected