connector

This commit is contained in:
4tochka 2019-05-26 13:56:22 +04:00
parent ba70df8f84
commit 7bc4b38250

View File

@ -230,7 +230,7 @@ static PyObject *CACHE_delete(CACHE *self, PyObject *args) {
PyObject *instead = NULL;
if (!PyArg_ParseTuple(args, "O|O", &key, &instead)) return NULL;
Node *node = GET_NODE(self->dict, key);
PyErr_Clear();
if (!node) {
if (!instead) {
Py_XDECREF(node);