Skip to content

Commit

Permalink
Merge pull request #18786 from Teemperor/FixClashingTranslatorFunction
Browse files Browse the repository at this point in the history
Fix clashes between translator function in PythonModule.h/.cc
  • Loading branch information
cmsbuild authored May 18, 2017
2 parents 74a230a + db921f6 commit 6505f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FWCore/PythonParameterSet/src/PythonModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
// to add module type and label context to the messages being caught
// here. At this point we did not think it worth the time to implement.
namespace {
void translator(cms::Exception const& ex) {
void translatorlibFWCorePythonParameterSet(cms::Exception const& ex) {
PyErr_SetString(PyExc_RuntimeError, ex.message().c_str());
}
}

BOOST_PYTHON_MODULE(libFWCorePythonParameterSet)
{
boost::python::register_exception_translator<cms::Exception>(translator);
boost::python::register_exception_translator<cms::Exception>(translatorlibFWCorePythonParameterSet);

boost::python::class_<edm::InputTag>("InputTag", boost::python::init<std::string>())
.def(boost::python::init<std::string, std::string, std::string>())
Expand Down

0 comments on commit 6505f8b

Please sign in to comment.