Skip to content

Commit 94a57d2

Browse files
committed
reserve pending exception after channel cleanup
1 parent de06f1d commit 94a57d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_interpchannelsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2952,7 +2952,7 @@ channelsmod_create(PyObject *self, PyObject *args, PyObject *kwds)
29522952
if (handle_channel_error(err, self, cid)) {
29532953
assert(cidobj == NULL);
29542954
err = channel_destroy(&_globals.channels, cid);
2955-
if (handle_channel_error(err, self, cid)) {
2955+
if (err != 0 && handle_channel_error(err, self, cid)) {
29562956
// XXX issue a warning?
29572957
}
29582958
return NULL;

0 commit comments

Comments
 (0)