diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-19 23:07:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-19 23:07:41 (GMT) |
commit | 0c21298f2bc17966498f13995586890488a6f8f1 (patch) | |
tree | 87d22063726a8fe715064f415053e5bdb76b2bd8 /Python/errors.c | |
parent | 41634edb2b54f488aac286b938a3590f5dac154c (diff) | |
download | cpython-0c21298f2bc17966498f13995586890488a6f8f1.zip cpython-0c21298f2bc17966498f13995586890488a6f8f1.tar.gz cpython-0c21298f2bc17966498f13995586890488a6f8f1.tar.bz2 |
[3.12] gh-108083: Don't ignore exceptions in sqlite3.Connection.__init__() and .close() (#108084) (#108141)
- Add explanatory comments
- Add return value to connection_close() for propagating errors
- Always check the return value of connection_exec_stmt()
- Assert pre/post state in remove_callbacks()
- Don't log unraisable exceptions in case of interpreter shutdown
- Make sure we're not initialized if reinit fails
- Try to close the database even if ROLLBACK fails
(cherry picked from commit fd195092204aa7fc9f13c5c6d423bc723d0b3520)
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions