Commit 1e354c8d authored by Michael Droettboom's avatar Michael Droettboom

Handle errors without tracebacks

parent e0e1b12d
......@@ -11,7 +11,7 @@ val pythonExcToJs() {
PyObject *value;
PyObject *traceback;
bool no_traceback = false;
PyErr_Fetch(&type, &value, &traceback);
PyErr_NormalizeException(&type, &value, &traceback);
......@@ -19,7 +19,7 @@ val pythonExcToJs() {
PyObject *tbmod = PyImport_ImportModule("traceback");
if (tbmod == NULL) {
excval = val("Couldn't get traceback module");
excval = pythonToJs(PyObject_Repr(value));
} else {
PyObject *format_exception;
if (traceback == NULL || traceback == Py_None) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment