Skip to content

Commit

Permalink
Don't set an exception witout GIL closing lobjects with a bad conn
Browse files Browse the repository at this point in the history
We ended up in this branch only for an excessively aggressive closing
of the transaction that now I'm going to fix.
  • Loading branch information
dvarrazzo committed Apr 5, 2014
1 parent 696d123 commit 2e55b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psycopg/lobject_int.c
Expand Up @@ -253,7 +253,7 @@ lobject_close_locked(lobjectObject *self, char **error)
return 0;
break;
default:
PyErr_SetString(OperationalError, "the connection is broken");
*error = strdup("the connection is broken");
return -1;
break;
}
Expand Down

0 comments on commit 2e55b35

Please sign in to comment.