From 01a26172c2ae659848da25ecc0ae9bf628b53717 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 18 Apr 2018 19:45:07 +0200 Subject: [PATCH] disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions --- src/CXX/Python3/Exception.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CXX/Python3/Exception.hxx b/src/CXX/Python3/Exception.hxx index 91692769b5..6cab35c16a 100644 --- a/src/CXX/Python3/Exception.hxx +++ b/src/CXX/Python3/Exception.hxx @@ -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 ) {