plugins/python/python.c
/* This is the fallback in case we cannot get the full traceback. */
This is the fallback in case we cannot get the full traceback.
This is the fallback in case we cannot get the full traceback .
static void
print_python_error (const char *callback, PyObject *error)
{
  PyObject *error_str;
  char *error_cstr = NULL;
  error_str = PyObject_Str (error);
  error_cstr = python_to_string (error_str);
  nbdkit_error ("%s: %s: error: %s",
                script, callback,
                error_cstr ? error_cstr : "<unknown>");
  Py_DECREF (error_str);
  free (error_cstr);
}
static void print_python_error ( const char * callback , PyObject * error ) { PyObject * error_str ; char * error_cstr = NULL ; error_str = PyObject_Str ( error ) ; error_cstr = python_to_string ( error_str ) ; nbdkit_error ( " " , script , callback , error_cstr ? error_cstr : " " ) ; Py_DECREF ( error_str ) ; free ( error_cstr ) ; }
This is the fallback in case we cannot get the full traceback.
This is the fallback in case we cannot get the full traceback .