Skip to content

Commit b17f832

Browse files
use set_error_from_code
1 parent b376f84 commit b17f832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,7 +2307,7 @@ pysqlite_connection_file_control_impl(pysqlite_Connection *self, int op,
23072307
Py_END_ALLOW_THREADS
23082308

23092309
if (rc != SQLITE_OK) {
2310-
PyErr_SetString(self->ProgrammingError, sqlite3_errstr(rc));
2310+
set_error_from_code(self->state, rc);
23112311
return NULL;
23122312
}
23132313

0 commit comments

Comments
 (0)