diff --git a/lib/python/pythonlanguage.cpp b/lib/python/pythonlanguage.cpp index 3ea81bd9b..d6d8337db 100644 --- a/lib/python/pythonlanguage.cpp +++ b/lib/python/pythonlanguage.cpp @@ -220,7 +220,7 @@ String PythonLanguage::ExceptionInfoToString(PyObject *type, PyObject *exc, PyOb if (!PyCallable_Check(format_exception)) return "Failed to format exception information."; - PyObject *result = PyObject_CallFunctionObjArgs(format_exception, type, exc, tb); + PyObject *result = PyObject_CallFunctionObjArgs(format_exception, type, exc, tb, NULL); Py_DECREF(format_exception); Py_DECREF(tb_dict);