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;
}