bt2: make log functions clear error indicator
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_trace_class.i.h
index 329fda6555c04df0eae3e3b01226036bf37010c3..1e1eb3c1b2ae4b4af8bfdad8993f5b41b8e32d5f 100644 (file)
@@ -37,8 +37,7 @@ trace_class_destroyed_listener(const bt_trace_class *trace_class, void *py_calla
 
        py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_class_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.022873 seconds and 4 git commands to generate.