mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-15 05:26:37 +03:00
Don't set an exception witout GIL closing lobjects with a bad conn
We ended up in this branch only for an excessively aggressive closing of the transaction that now I'm going to fix.
This commit is contained in:
parent
d1e1243ba8
commit
221d0d66de
|
@ -253,7 +253,7 @@ lobject_close_locked(lobjectObject *self, char **error)
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PyErr_SetString(OperationalError, "the connection is broken");
|
*error = strdup("the connection is broken");
|
||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user