Don't clobber exception if conn_switch_isolation_level fails.

Which shouldn't.
This commit is contained in:
Daniele Varrazzo 2010-11-17 01:43:50 +00:00
parent 9849083628
commit c3c54aab38
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-11-17 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* psycopg/connection_type.c: don't clobber exception if
isolation_level_switch fails.
2010-11-16 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* psycopg/connection_int.c: abort connection to protocol 2 server.

View File

@ -415,12 +415,9 @@ psyco_conn_set_isolation_level(connectionObject *self, PyObject *args)
}
if (conn_switch_isolation_level(self, level) < 0) {
PyErr_SetString(OperationalError,
PQerrorMessage(self->pgconn));
return NULL;
}
Py_INCREF(Py_None);
return Py_None;
}