Closed
Description
Originally posted by @vstinner in #108015 (comment):
Ignoring the exception here is a bug.
connection_finalize() clears any exception with PyErr_SetRaisedException(), but pysqlite_connection_close_impl() must not ignore silently error, since here we are talking about a raised Python exception! The function must report if an exception was raised. Then the caller is free to ignore it or not.
I suggest to continue ignoring it in finalize, but then write a separated PR to log the "unraisable exception".