summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-07-20 16:41:55 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-07-23 11:57:18 +0200
commit3808967cfaa6beb9d93d2035ebc72fa010fdab11 (patch)
tree703679cb444f21a6e776f83066f5410da70eb0f3 /src
parente509cd013f691acded3dc0d87732ba5257cb0ae4 (diff)
downloadastra-3808967cfaa6beb9d93d2035ebc72fa010fdab11.tar.gz
astra-3808967cfaa6beb9d93d2035ebc72fa010fdab11.tar.bz2
astra-3808967cfaa6beb9d93d2035ebc72fa010fdab11.tar.xz
astra-3808967cfaa6beb9d93d2035ebc72fa010fdab11.zip
Normalize Python exceptions (needed for some)
Diffstat (limited to 'src')
-rw-r--r--src/PluginAlgorithm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PluginAlgorithm.cpp b/src/PluginAlgorithm.cpp
index 7f7ff61..56c4e4d 100644
--- a/src/PluginAlgorithm.cpp
+++ b/src/PluginAlgorithm.cpp
@@ -44,6 +44,7 @@ void logPythonError(){
if(PyErr_Occurred()){
PyObject *ptype, *pvalue, *ptraceback;
PyErr_Fetch(&ptype, &pvalue, &ptraceback);
+ PyErr_NormalizeException(&ptype, &pvalue, &ptraceback);
PyObject *traceback = PyImport_ImportModule("traceback");
if(traceback!=NULL){
PyObject *exc;