Skip to content

Commit 6a3a708

Browse files
committed
assert that PyErr_SetString is not called with an active exception
1 parent 5653512 commit 6a3a708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ cursor_sqlite3_internal_error(pysqlite_Cursor *cursor,
8080
_PyErr_ChainExceptions1(exc);
8181
}
8282
else {
83-
// assert(!PyErr_Occurred());
83+
assert(!PyErr_Occurred());
8484
PyErr_SetString(state->InternalError, error_message);
8585
}
8686
}

0 commit comments

Comments
 (0)