mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591)
This commit is contained in:
parent
6ac3c8a314
commit
c4a69a4ad0
6 changed files with 64 additions and 34 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue