diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-18 11:39:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-18 11:39:12 (GMT) |
commit | fd195092204aa7fc9f13c5c6d423bc723d0b3520 (patch) | |
tree | ec996413c703f184f1caa36a906015453684eaad /Python/dup2.c | |
parent | 3ff5ef2ad3d89c3ccf4e07ac8fdd798267ae6c61 (diff) | |
download | cpython-fd195092204aa7fc9f13c5c6d423bc723d0b3520.zip cpython-fd195092204aa7fc9f13c5c6d423bc723d0b3520.tar.gz cpython-fd195092204aa7fc9f13c5c6d423bc723d0b3520.tar.bz2 |
gh-108083: Don't ignore exceptions in sqlite3.Connection.__init__() and .close() (#108084)
- 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
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/dup2.c')
0 files changed, 0 insertions, 0 deletions