Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_trace.i.h
index c525fa11e1e16cfc232f75517cfdde993d21dd61..4b7f790426e1468997420657a0bcfa3cf6410b08 100644 (file)
@@ -32,13 +32,12 @@ trace_destroyed_listener(const bt_trace *trace, void *py_callable)
                SWIGTYPE_p_bt_trace, 0);
        if (!py_trace_ptr) {
                BT_LOGF_STR("Failed to create a SWIG pointer object.");
-               abort();
+               bt_common_abort();
        }
 
        py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_ptr);
        if (!py_res) {
-               logw_exception(BT_LOG_OUTPUT_LEVEL);
-               PyErr_Clear();
+               logw_exception_clear(BT_LOG_OUTPUT_LEVEL);
                goto end;
        }
 
This page took 0.02298 seconds and 4 git commands to generate.