On 08/17/2012 01:10 PM, Michal Toman wrote:
src/report-python/problem_data.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/report-python/problem_data.c b/src/report-python/problem_data.c index 666d839..2396620 100644 --- a/src/report-python/problem_data.c +++ b/src/report-python/problem_data.c @@ -128,6 +128,13 @@ static PyObject *p_problem_data_add_current_process(PyObject *pself, PyObject *a Py_RETURN_NONE; }
+static PyObject *p_problem_data_send_to_abrt(PyObject *pself, PyObject *always_null) +{
- p_problem_data *self = (p_problem_data*)pself;
- problem_data_send_to_abrt(self->cd);
- Py_RETURN_NONE;
+}
- works, but could you please not return NONE but, propagate the return value of problem_data_send_to_abrt?
//static PyMemberDef p_problem_data_members[] = { // { NULL } @@ -140,6 +147,7 @@ static PyMethodDef p_problem_data_methods[] = { { "create_dump_dir" , p_create_dump_dir_from_problem_data, METH_VARARGS }, { "add_basics" , p_problem_data_add_basics , METH_NOARGS }, { "add_current_proccess", p_problem_data_add_current_process , METH_NOARGS },
- { "send_to_abrt" , p_problem_data_send_to_abrt , METH_NOARGS }, { NULL } };