ctree: return -1 instead of NULL for contains error

This commit is contained in:
Durham Goode 2016-08-29 16:19:52 -07:00
parent 71cbc6ab90
commit afe0a91adc

View File

@ -781,7 +781,7 @@ static int treemanifest_contains(py_treemanifest *self, PyObject *key) {
return 1;
}
} catch (const pyexception &ex) {
return NULL;
return -1;
}
}