aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/python_hooks.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/paludis/python_hooks.cc b/paludis/python_hooks.cc
index e47fc7a58..566bd1ddc 100644
--- a/paludis/python_hooks.cc
+++ b/paludis/python_hooks.cc
@@ -393,6 +393,7 @@ PyHookFile::_get_traceback() const
PyObject * ptype, * pvalue, * ptraceback;
PyErr_Fetch(&ptype, &pvalue, &ptraceback);
+ PyErr_NormalizeException(&ptype, &pvalue, &ptraceback);
if (ptype == NULL)
ptype = Py_None;