summaryrefslogtreecommitdiffstats
path: root/python/xml/py_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r--python/xml/py_xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c
index 61053aed..b23e0ec3 100644
--- a/python/xml/py_xml.c
+++ b/python/xml/py_xml.c
@@ -144,6 +144,7 @@ PyObject *node_export_to_soap(PyObject *self, PyObject *args) {
PyObject *node_get_attr_value(PyObject *self, PyObject *args) {
PyObject *node_obj;
const xmlChar *name;
+ GError *err = NULL;
xmlChar *ret;
if (CheckArgs(args, "OS:node_get_attr_value")) {
@@ -153,7 +154,9 @@ PyObject *node_get_attr_value(PyObject *self, PyObject *args) {
}
else return NULL;
- ret = lasso_node_get_attr_value(LassoNode_get(node_obj), name);
+ ret = lasso_node_get_attr_value(LassoNode_get(node_obj), name, &err);
+ /* FIXME generate an exception here */
+ g_error_free(err);
return (xmlCharPtr_wrap(ret));
}