Displaying 2 results from an estimated 2 matches for "7126113".
2018 Aug 08
2
[PATCH nbdkit] python: Try harder to print the full traceback on error.
...quot;%s: %s: error: %s",
+ script, callback,
+ error_cstr ? error_cstr : "<unknown>");
+ Py_DECREF (error_str);
+ free (error_cstr);
+}
+
+/* Convert the Python traceback to a string and call nbdkit_error.
+ * https://stackoverflow.com/a/15907460/7126113
+ */
+static int
+print_python_traceback (const char *callback,
+ PyObject *type, PyObject *error, PyObject *traceback)
+{
+ PyObject *module_name, *traceback_module, *format_exception_fn, *rv,
+ *traceback_str;
+ char *traceback_cstr;
+
+#ifdef HAVE_PYSTRING_FROMSTRING...
2018 Aug 08
0
Re: [PATCH nbdkit] python: Try harder to print the full traceback on error.
...script, callback,
> + error_cstr ? error_cstr : "<unknown>");
> + Py_DECREF (error_str);
> + free (error_cstr);
> +}
> +
> +/* Convert the Python traceback to a string and call nbdkit_error.
> + * https://stackoverflow.com/a/15907460/7126113
> + */
> +static int
> +print_python_traceback (const char *callback,
> + PyObject *type, PyObject *error, PyObject
> *traceback)
> +{
> + PyObject *module_name, *traceback_module, *format_exception_fn, *rv,
> + *traceback_str;
> + char *traceb...