From 70a8a7b2988fe6fd70032f73f921b87b49549fed Mon Sep 17 00:00:00 2001 From: Matpi Date: Sat, 23 Oct 2021 01:06:57 +0200 Subject: [PATCH] Display traceback for exceptions in callables. --- module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/module.c b/module.c index 83e6b02..23f81cd 100644 --- a/module.c +++ b/module.c @@ -568,6 +568,7 @@ static JSValue js_c_function( PyObject *result = PyObject_CallObject(node->obj, args); Py_DECREF(args); if (!result) { + PyErr_WriteUnraisable(node->obj); end_call_python(context); return JS_ThrowInternalError(ctx, "Python call failed."); }