From bcf36842740b5a194548bd7175b76407bd98e09f Mon Sep 17 00:00:00 2001 From: Walter Lampl <Walter.Lampl@cern.ch> Date: Thu, 9 Apr 2020 09:38:00 +0200 Subject: [PATCH] PyComponentMgr.cxx: Error msg cosmetics --- Control/AthenaPython/src/PyComponentMgr.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Control/AthenaPython/src/PyComponentMgr.cxx b/Control/AthenaPython/src/PyComponentMgr.cxx index df590b91a46..f7ca99964d7 100755 --- a/Control/AthenaPython/src/PyComponentMgr.cxx +++ b/Control/AthenaPython/src/PyComponentMgr.cxx @@ -151,10 +151,11 @@ PyComponentMgr::initialize() PyObject *rootFixes = 0; rootFixes = PyImport_ImportModule(const_cast<char*>(pyRootFixes.c_str())); if ( !rootFixes || !PyModule_Check( rootFixes ) ) { + PyErr_Print(); PyErr_Clear(); ATH_MSG_WARNING("Could not import [" << pyRootFixes << "] !!" << endmsg - << "Some problem may appear wit some C++->python binded classes (YMMV)"); + << "Some problem may appear with some C++->python binded classes (YMMV)"); } Py_XDECREF(rootFixes); return StatusCode::SUCCESS; -- GitLab