SIGN IN SIGN UP

[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>
E
Erlend E. Aasland committed
0c21298f2bc17966498f13995586890488a6f8f1
Parent: 41634ed
Committed by GitHub <noreply@github.com> on 8/19/2023, 11:07:41 PM