projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: bt2: clear Python error indicator in trace and trace class destruction listeners
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
native_bt_trace.i.h
diff --git
a/src/bindings/python/bt2/bt2/native_bt_trace.i.h
b/src/bindings/python/bt2/bt2/native_bt_trace.i.h
index 26404afb9c6714e4b808d8e10f378d2e415e6c2b..c525fa11e1e16cfc232f75517cfdde993d21dd61 100644
(file)
--- a/
src/bindings/python/bt2/bt2/native_bt_trace.i.h
+++ b/
src/bindings/python/bt2/bt2/native_bt_trace.i.h
@@
-37,9
+37,8
@@
trace_destroyed_listener(const bt_trace *trace, void *py_callable)
py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_ptr);
if (!py_res) {
- loge_exception_append_cause(
- "Trace's destruction listener (Python)",
- BT_LOG_OUTPUT_LEVEL);
+ logw_exception(BT_LOG_OUTPUT_LEVEL);
+ PyErr_Clear();
goto end;
}
This page took
0.023959 seconds
and
4
git commands to generate.