Skip to content

Commit

Permalink
Small cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jul 4, 2018
1 parent c00d074 commit 3492d6b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,10 @@ void _pysqlite_value_callback(sqlite3_context* context)

aggregate_instance = (PyObject**)sqlite3_aggregate_context(context, sizeof(PyObject*));
if (!*aggregate_instance) {
/* this branch is executed if there was an exception in the aggregate's
* __init__ */

goto error;
}

/* Keep the exception (if any) of the last call to step() */
/* Keep the exception (if any) of the last call to step() or inverse() */
PyErr_Fetch(&exception, &val, &tb);
restore = 1;

Expand Down Expand Up @@ -817,9 +814,6 @@ static void _pysqlite_inverse_callback(sqlite3_context *context, int argc, sqlit

aggregate_instance = (PyObject**)sqlite3_aggregate_context(context, sizeof(PyObject*));
if (!*aggregate_instance) {
/* this branch is executed if there was an exception in the aggregate's
* __init__ */

goto error;
}

Expand Down

0 comments on commit 3492d6b

Please sign in to comment.