diff options
author | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-07-20 16:41:55 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-07-23 11:57:18 +0200 |
commit | 3808967cfaa6beb9d93d2035ebc72fa010fdab11 (patch) | |
tree | 703679cb444f21a6e776f83066f5410da70eb0f3 /src | |
parent | e509cd013f691acded3dc0d87732ba5257cb0ae4 (diff) | |
download | astra-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.cpp | 1 |
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; |