GString *exc = NULL;
if (Py_IsInitialized() && PyErr_Occurred()) {
- exc = bt_py_common_format_exception(BT_LOG_OUTPUT_LEVEL);
+ exc = bt_py_common_format_current_exception(BT_LOG_OUTPUT_LEVEL);
if (!exc) {
BT_LOGE_STR("Failed to format Python exception.");
goto end;
GString *exc = NULL;
if (Py_IsInitialized() && PyErr_Occurred()) {
- exc = bt_py_common_format_exception(BT_LOG_OUTPUT_LEVEL);
+ exc = bt_py_common_format_current_exception(BT_LOG_OUTPUT_LEVEL);
if (!exc) {
BT_LOGE_STR("Failed to format Python exception.");
goto end;