Issue #18519: Fix test_sqlite on old versions of libsqlite3

With old SQLite versions, _sqlite3_result_error() sets a new Python exception,
so don't restore the previous exception.
1 file changed