[Python] Commit patch #2089149: Director exception handling mangles

returned exception.  Exceptions raised by Python code in directors
are now passed through to the caller without change.  Also, remove
the ": " prefix which used to be added to other director exceptions
(eg, those due to incorrect return types).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Richard Boulton 2008-09-10 10:08:21 +00:00
commit 761ef2b98f
3 changed files with 45 additions and 14 deletions

View file

@ -208,10 +208,7 @@ namespace Swig {
swig_msg += msg;
}
if (!PyErr_Occurred()) {
swig_msg.insert(0, ": ");
PyErr_SetString(error, getMessage());
} else {
SWIG_Python_AddErrorMsg(getMessage());
}
SWIG_PYTHON_THREAD_END_BLOCK;
}