X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i;h=bba59883329bf6afb1abef7de26c20ceb37003b1;hb=a635e50750a3c1e8907b38c8311dc0b8bb0f09c3;hp=63dcc0ba29378f5e3612297fef2b6841364ea6da;hpb=aede8fc9160e48cc3bc6803c8c337e1a5b6a364c;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt_component_class.i b/src/bindings/python/bt2/bt2/native_bt_component_class.i index 63dcc0ba..bba59883 100644 --- a/src/bindings/python/bt2/bt2/native_bt_component_class.i +++ b/src/bindings/python/bt2/bt2/native_bt_component_class.i @@ -98,7 +98,6 @@ static PyObject *py_mod_bt2_exc_memory_error = NULL; static PyObject *py_mod_bt2_exc_try_again_type = NULL; static PyObject *py_mod_bt2_exc_stop_type = NULL; static PyObject *py_mod_bt2_exc_invalid_object_type = NULL; -static PyObject *py_mod_bt2_exc_invalid_params_type = NULL; static void bt_bt2_cc_init_from_bt2(void) @@ -128,9 +127,6 @@ void bt_bt2_cc_init_from_bt2(void) py_mod_bt2_exc_invalid_object_type = PyObject_GetAttrString(py_mod_bt2, "InvalidObject"); BT_ASSERT(py_mod_bt2_exc_invalid_object_type); - py_mod_bt2_exc_invalid_params_type = - PyObject_GetAttrString(py_mod_bt2, "InvalidParams"); - BT_ASSERT(py_mod_bt2_exc_invalid_params_type); } static @@ -154,7 +150,6 @@ void bt_bt2_cc_exit_handler(void) Py_XDECREF(py_mod_bt2_exc_try_again_type); Py_XDECREF(py_mod_bt2_exc_stop_type); Py_XDECREF(py_mod_bt2_exc_invalid_object_type); - Py_XDECREF(py_mod_bt2_exc_invalid_params_type); } @@ -395,9 +390,6 @@ int py_exc_to_status(bt_self_component_class *self_component_class, } else if (PyErr_GivenExceptionMatches(exc, py_mod_bt2_exc_invalid_object_type)) { status = __BT_FUNC_STATUS_INVALID_OBJECT; - } else if (PyErr_GivenExceptionMatches(exc, - py_mod_bt2_exc_invalid_params_type)) { - status = __BT_FUNC_STATUS_INVALID_PARAMS; } else { /* Unknown exception: convert to general error */ log_exception_and_maybe_append_error(BT_LOG_WARNING, true,