summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-11-29 15:22:32 (GMT)
committerGitHub <noreply@github.com>2021-11-29 15:22:32 (GMT)
commitc4a69a4ad035513ada1c0d41a46723606b538e13 (patch)
tree29ef43642bc01b65bfa9305d3e3c74952eff2d01 /Modules
parent6ac3c8a3140c17bd71ba98dfc5250c371101e77c (diff)
downloadcpython-c4a69a4ad035513ada1c0d41a46723606b538e13.zip
cpython-c4a69a4ad035513ada1c0d41a46723606b538e13.tar.gz
cpython-c4a69a4ad035513ada1c0d41a46723606b538e13.tar.bz2
bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 0bc9d1d..4f0baa6 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -691,7 +691,7 @@ print_or_clear_traceback(callback_context *ctx)
assert(ctx != NULL);
assert(ctx->state != NULL);
if (ctx->state->enable_callback_tracebacks) {
- PyErr_Print();
+ PyErr_WriteUnraisable(ctx->callable);
}
else {
PyErr_Clear();