[pygi] Print any error messages raised inside _pygi_closure_handle
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygi] Print any error messages raised inside _pygi_closure_handle
- Date: Fri, 23 Apr 2010 11:00:12 +0000 (UTC)
commit 24bb89f1310dc2fc8ee6ddaf945342ebf80055cd
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date: Tue Apr 20 15:12:47 2010 +0200
Print any error messages raised inside _pygi_closure_handle
https://bugzilla.gnome.org/show_bug.cgi?id=616279
gi/pygi-closure.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index 35373d2..98c758d 100644
--- a/gi/pygi-closure.c
+++ b/gi/pygi-closure.c
@@ -62,7 +62,7 @@ _pygi_closure_handle (ffi_cif *cif,
py_args = PyTuple_New(n_args);
if (py_args == NULL) {
- PyErr_Clear();
+ PyErr_Print();
goto end;
}
@@ -79,7 +79,7 @@ _pygi_closure_handle (ffi_cif *cif,
{
if (g_type_info_is_pointer(arg_type)) {
if (PyTuple_SetItem(py_args, n_in_args, closure->user_data) != 0) {
- PyErr_Clear();
+ PyErr_Print();
goto end;
}
n_in_args++;
@@ -97,7 +97,7 @@ _pygi_closure_handle (ffi_cif *cif,
arg_transfer);
if(PyTuple_SetItem(py_args, n_in_args, pyarg) != 0) {
- PyErr_Clear();
+ PyErr_Print();
goto end;
}
n_in_args++;
@@ -109,7 +109,7 @@ _pygi_closure_handle (ffi_cif *cif,
}
if(_PyTuple_Resize (&py_args, n_in_args) != 0) {
- PyErr_Clear();
+ PyErr_Print();
goto end;
}
@@ -118,6 +118,7 @@ _pygi_closure_handle (ffi_cif *cif,
Py_DECREF(py_args);
if (retval == NULL) {
+ PyErr_Print();
goto end;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]