We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad7a4af + d69fcb1 commit 1c17ae3Copy full SHA for 1c17ae3
1 file changed
source/PyMaterialX/PyMaterialXCore/PyException.cpp
@@ -12,7 +12,7 @@ namespace mx = MaterialX;
12
13
void bindPyException(py::module& mod)
14
{
15
- static py::exception<mx::Exception> pyException(mod, "Exception");
+ py::register_exception<mx::Exception>(mod, "Exception");
16
17
py::register_exception_translator(
18
[](std::exception_ptr errPtr)
0 commit comments