Skip to content

Commit 5653512

Browse files
committed
check that blob_error set an exception
1 parent a1b9eaa commit 5653512

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/_sqlite/blob.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ static void
118118
blob_seterror(pysqlite_Blob *self, int rc)
119119
{
120120
assert(self->connection != NULL);
121-
set_error_from_db(self->connection->state, self->connection->db);
121+
assert(rc != SQLITE_OK);
122+
set_error_from_code(self->connection->state, rc);
123+
assert(PyErr_Occurred());
122124
}
123125

124126
static PyObject *

0 commit comments

Comments
 (0)