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:
Daniele Varrazzo 2014-04-05 15:10:15 +01:00
parent d1e1243ba8
commit 221d0d66de

View File

@ -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;
} }