Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 23:17:42 +01:00
parent e02695b91f
commit 7dc13bd2d6
4 changed files with 8 additions and 9 deletions

View File

@@ -326,7 +326,7 @@ void InteractiveInterpreter::runCode(PyCodeObject* code) const
if (PyDict_Check(errdata)) {
PyObject* value = PyDict_GetItemString(errdata, "swhat");
if (value) {
Base::Exception e;
Base::RuntimeError e;
e.setPyObject(errdata);
Py_DECREF(errdata);