We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a5a77 commit 3589a6aCopy full SHA for 3589a6a
Modules/_sqlite/util.c
@@ -36,6 +36,7 @@ pysqlite_step(sqlite3_stmt *statement)
36
return rc;
37
}
38
39
+// Returns non-NULL if a new exception should be raised
40
static PyObject *
41
get_exception_class(pysqlite_state *state, int errorcode)
42
{
@@ -133,6 +134,7 @@ _pysqlite_seterror(pysqlite_state *state, sqlite3 *db)
133
134
int errorcode = sqlite3_errcode(db);
135
PyObject *exc_class = get_exception_class(state, errorcode);
136
if (exc_class == NULL) {
137
+ // No new exception need be raised; just pass the error code
138
return errorcode;
139
140
0 commit comments