We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae2e5a3 commit 1914b7dCopy full SHA for 1914b7d
include/pybind11/embed.h
@@ -56,13 +56,7 @@
56
try { \
57
PYBIND11_CONCAT(pybind11_init_, name)(m); \
58
return m.ptr(); \
59
- } catch (::pybind11::error_already_set &e) { \
60
- PyErr_SetString(PyExc_ImportError, e.what()); \
61
- return nullptr; \
62
- } catch (const std::exception &e) { \
63
64
65
- } \
+ } PYBIND11_CATCH_INIT_EXCEPTIONS \
66
} \
67
PYBIND11_EMBEDDED_MODULE_IMPL(name) \
68
::pybind11::detail::embedded_module PYBIND11_CONCAT(pybind11_module_, name) \
0 commit comments