X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i;h=4b718015738c76f8be9254a6e5fcfccd62a4d9a6;hp=42feccf5a1d80d451b19879f9af4ea065bc83725;hb=5084732e40a7925d22f741e4ed08f19d36078fbe;hpb=cd1ef6f2860c2b6bf3c22ee984347029c31ac827 diff --git a/src/bindings/python/bt2/bt2/native_bt_component_class.i b/src/bindings/python/bt2/bt2/native_bt_component_class.i index 42feccf5..4b718015 100644 --- a/src/bindings/python/bt2/bt2/native_bt_component_class.i +++ b/src/bindings/python/bt2/bt2/native_bt_component_class.i @@ -181,7 +181,7 @@ void log_exception_and_maybe_append_error(int log_level, { GString *gstr; - BT_ASSERT(PyErr_Occurred() != NULL); + BT_ASSERT(PyErr_Occurred()); gstr = bt_py_common_format_exception(BT_LOG_OUTPUT_LEVEL); if (!gstr) { /* bt_py_common_format_exception() logs errors */