Skip to content

Commit e78dc57

Browse files
committed
fixup! remove redundant check after calling PySequence_Size
1 parent 263038c commit e78dc57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_sqlite/cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ bind_parameters(pysqlite_state *state, pysqlite_Connection *conn,
713713
num_params = PyList_GET_SIZE(parameters);
714714
} else {
715715
num_params = PySequence_Size(parameters);
716-
if (num_params == -1 && PyErr_Occurred()) {
716+
if (num_params == -1) {
717717
return -1;
718718
}
719719
else if (!pysqlite_check_connection(conn)) {

0 commit comments

Comments
 (0)