disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions

This commit is contained in:
wmayer
2018-04-18 19:45:07 +02:00
parent 840c9e8b3c
commit 01a26172c2

View File

@@ -63,10 +63,10 @@ namespace Py
explicit Exception ()
{}
Exception (const std::string &reason)
{
PyErr_SetString( Py::_Exc_RuntimeError(), reason.c_str() );
}
//Exception (const std::string &reason)
//{
// PyErr_SetString( Py::_Exc_RuntimeError(), reason.c_str() );
//}
Exception( PyObject *exception, const std::string &reason )
{