Fix: bt2: clear Python error indicator in trace and trace class destruction listeners
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_trace_class.i.h
index f51d619fdfd70f75f5864c3a20bfe230cc03a2c1..329fda6555c04df0eae3e3b01226036bf37010c3 100644 (file)
@@ -37,9 +37,8 @@ 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) {
-               loge_exception_append_cause(
-                       "Trace class's destruction listener (Python)",
-                       BT_LOG_OUTPUT_LEVEL);
+               logw_exception(BT_LOG_OUTPUT_LEVEL);
+               PyErr_Clear();
                goto end;
        }
 
This page took 0.022707 seconds and 4 git commands to generate.